Documentation ¶
Index ¶
- type Middleware
- func (m *Middleware) AuthenticateProvisionerAccount(ctx context.Context) (*types.ProvisionerAccountPayload, error)
- func (m *Middleware) AuthenticateServiceAccount(ctx context.Context) (*types.ServiceAccountPayload, error)
- func (m *Middleware) ServerAuthenticationInterceptor(ctx context.Context, req any, info *grpc.UnaryServerInfo, ...) (any, error)
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 lib.Auth, endpoints db.DatabaseEndpoints, enforcer *casbin.Enforcer, cache *bigcache.BigCache) *Middleware
func (*Middleware) AuthenticateProvisionerAccount ¶
func (m *Middleware) AuthenticateProvisionerAccount(ctx context.Context) (*types.ProvisionerAccountPayload, error)
func (*Middleware) AuthenticateServiceAccount ¶
func (m *Middleware) AuthenticateServiceAccount(ctx context.Context) (*types.ServiceAccountPayload, error)
func (*Middleware) ServerAuthenticationInterceptor ¶
func (m *Middleware) ServerAuthenticationInterceptor(ctx context.Context, req any, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (any, error)
Click to show internal directories.
Click to hide internal directories.