Documentation ¶
Index ¶
- Variables
- func AuthUnaryServerInterceptor(verifier token.Verifier) grpc.UnaryServerInterceptor
- func GetAccessToken(ctx context.Context) (*token.AccessToken, bool)
- func LogUnaryServerInterceptor(logger *zap.Logger) grpc.UnaryServerInterceptor
- func MetricsUnaryServerInterceptor() grpc.UnaryServerInterceptor
- type Option
- type Server
- type Service
Constants ¶
This section is empty.
Variables ¶
View Source
var Key = tokenKey{}
Functions ¶
func AuthUnaryServerInterceptor ¶
func AuthUnaryServerInterceptor(verifier token.Verifier) grpc.UnaryServerInterceptor
func GetAccessToken ¶ added in v0.4.6
func GetAccessToken(ctx context.Context) (*token.AccessToken, bool)
func LogUnaryServerInterceptor ¶
func LogUnaryServerInterceptor(logger *zap.Logger) grpc.UnaryServerInterceptor
func MetricsUnaryServerInterceptor ¶
func MetricsUnaryServerInterceptor() grpc.UnaryServerInterceptor
Types ¶
type Option ¶
type Option func(*Server)
func WithLogger ¶
func WithMetrics ¶
func WithMetrics(registerer metrics.Registerer) Option
func WithService ¶
func WithVerifier ¶
Click to show internal directories.
Click to hide internal directories.