Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Middleware ¶
type Middleware struct {
// contains filtered or unexported fields
}
func New ¶
func New(auth authentication.Auth, endpoints db.DatabaseEndpoints, enforcer *casbin.Enforcer, cache *bigcache.BigCache) *Middleware
func (*Middleware) AuthenticateServiceAccount ¶
func (m *Middleware) AuthenticateServiceAccount(ctx context.Context) (*authentication.ServicePayload, error)
func (*Middleware) ServerAuthenticationInterceptor ¶
func (m *Middleware) ServerAuthenticationInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error)
Click to show internal directories.
Click to hide internal directories.