Vasiliy Tolstov c36b9e002f
Some checks failed
codeql / analyze (go) (pull_request) Failing after 3m20s
dependabot-automerge / automerge (pull_request) Has been skipped
prbuild / test (pull_request) Failing after 1m29s
prbuild / lint (pull_request) Failing after 2m41s
autoapprove / autoapprove (pull_request) Failing after 1m25s
automerge / automerge (pull_request) Failing after 4s
update for latest micro changes
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2023-08-15 07:43:43 +03:00

21 lines
398 B
Go

package service
import (
"go.unistack.org/micro/v4/client"
"go.unistack.org/micro/v4/options"
)
type clientKey struct{}
// Client to call config service
func Client(c client.Client) options.Option {
return options.ContextOption(clientKey{}, c)
}
type serviceKey struct{}
// Service to which data load
func Service(s string) options.Option {
return options.ContextOption(serviceKey{}, s)
}