infrastructure

package
v0.0.0-...-a45743d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 23, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const AuthTokenKey = "auth-token"

Variables

This section is empty.

Functions

func AccessLogUnaryServerInterceptor

func AccessLogUnaryServerInterceptor() grpc.UnaryServerInterceptor

func Authentication

func Authentication(ctx context.Context) (context.Context, error)

func AuthorizationUnaryServerInterceptor

func AuthorizationUnaryServerInterceptor() grpc.UnaryServerInterceptor

func CreateLogger

func CreateLogger() *zap.Logger

func GetAuthToken

func GetAuthToken(ctx context.Context) (*jwt.StandardClaims, bool)

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) Watch

type User

type User struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL