1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-11-29 21:47:44 +02:00

separate rules and auth

This commit is contained in:
Asim Aslam
2020-12-12 20:08:39 +00:00
parent 202338bd2d
commit de4f3ee4a2
4 changed files with 39 additions and 22 deletions

View File

@@ -219,14 +219,14 @@ func VerifyContext(ctx context.Context) VerifyOption {
}
}
type RulesOptions struct {
type ListOptions struct {
Context context.Context
}
type RulesOption func(o *RulesOptions)
type ListOption func(o *ListOptions)
func RulesContext(ctx context.Context) RulesOption {
return func(o *RulesOptions) {
func RulesContext(ctx context.Context) ListOption {
return func(o *ListOptions) {
o.Context = ctx
}
}