Documentation ¶
Index ¶
- func Init(config Config) (*kitNetGrpc.Server, error)
- func NewAuth(jwksUrl string, tls *tls.Config) kitNetGrpc.AuthInterceptors
- func StreamServerInterceptor(authFunc func(ctx context.Context, method string) (context.Context, error)) grpc.StreamServerInterceptor
- func UnaryServerInterceptor(authFunc func(ctx context.Context, method string) (context.Context, error)) grpc.UnaryServerInterceptor
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAuth ¶
func NewAuth(jwksUrl string, tls *tls.Config) kitNetGrpc.AuthInterceptors
func StreamServerInterceptor ¶
func StreamServerInterceptor(authFunc func(ctx context.Context, method string) (context.Context, error)) grpc.StreamServerInterceptor
StreamServerInterceptor returns a new unary server interceptors that performs per-request auth.
func UnaryServerInterceptor ¶
func UnaryServerInterceptor(authFunc func(ctx context.Context, method string) (context.Context, error)) grpc.UnaryServerInterceptor
UnaryServerInterceptor returns a new unary server interceptors that performs per-request auth.
Types ¶
type Config ¶
type Config struct { Log log.Config JwksURL string `envconfig:"JWKS_URL"` Listen certManager.Config `envconfig:"LISTEN"` Dial certManager.Config `envconfig:"DIAL"` kitNetGrpc.Config service.HandlerConfig }
Click to show internal directories.
Click to hide internal directories.