Documentation
¶
Index ¶
- Constants
- func AccessLogUnaryServerInterceptor() grpc.UnaryServerInterceptor
- func Authentication(ctx context.Context) (context.Context, error)
- func AuthorizationUnaryServerInterceptor() grpc.UnaryServerInterceptor
- func CreateLogger() *zap.Logger
- func GetAuthToken(ctx context.Context) (*jwt.StandardClaims, bool)
- type CatService
- type SkipAuthHealthServer
- func (*SkipAuthHealthServer) AuthFuncOverride(ctx context.Context, fullMethodName string) (context.Context, error)
- func (h *SkipAuthHealthServer) Check(context.Context, *health.HealthCheckRequest) (*health.HealthCheckResponse, error)
- func (h *SkipAuthHealthServer) Watch(*health.HealthCheckRequest, health.Health_WatchServer) error
- type User
Constants ¶
View Source
const AuthTokenKey = "auth-token"
Variables ¶
This section is empty.
Functions ¶
func AccessLogUnaryServerInterceptor ¶
func AccessLogUnaryServerInterceptor() grpc.UnaryServerInterceptor
func AuthorizationUnaryServerInterceptor ¶
func AuthorizationUnaryServerInterceptor() grpc.UnaryServerInterceptor
func CreateLogger ¶
func GetAuthToken ¶
Types ¶
type CatService ¶
type CatService struct{}
func (*CatService) FindCuteCat ¶
func (s *CatService) FindCuteCat(ctx context.Context, message *cat.FindCuteCatMessage) (*cat.CuteCatResponse, error)
type SkipAuthHealthServer ¶
type SkipAuthHealthServer struct {
health.HealthServer
}
func (*SkipAuthHealthServer) AuthFuncOverride ¶
func (*SkipAuthHealthServer) AuthFuncOverride(ctx context.Context, fullMethodName string) (context.Context, error)
AuthFuncOverride SkipAuthHealthServer構造体がServiceAuthFuncOverrideインターフェースを実装する
func (*SkipAuthHealthServer) Check ¶
func (h *SkipAuthHealthServer) Check(context.Context, *health.HealthCheckRequest) (*health.HealthCheckResponse, error)
func (*SkipAuthHealthServer) Watch ¶
func (h *SkipAuthHealthServer) Watch(*health.HealthCheckRequest, health.Health_WatchServer) error
Source Files
¶
Click to show internal directories.
Click to hide internal directories.