Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthInterceptor ¶
type AuthInterceptor struct {
// contains filtered or unexported fields
}
AuthInterceptor enforces JWT based authentication on gRPC services
func NewAuthInterceptor ¶
func NewAuthInterceptor(log utilities.Logger, tokenService *services.TokenService, accessibleRoles map[string][]string) *AuthInterceptor
NewAuthInterceptor constructs an AuthInterceptor
func (*AuthInterceptor) Stream ¶
func (i *AuthInterceptor) Stream() grpc.StreamServerInterceptor
Stream creates and returns a gRPC stream server interceptor
func (*AuthInterceptor) Unary ¶
func (i *AuthInterceptor) Unary() grpc.UnaryServerInterceptor
Unary method creates and returns a gRPC unary server interceptor
type LoggerInterceptor ¶
type LoggerInterceptor struct {
// contains filtered or unexported fields
}
LoggerInterceptor struct
func NewLoggerInterceptor ¶
func NewLoggerInterceptor(logger utilities.Logger, cfg *config.Configuration) *LoggerInterceptor
NewLoggerInterceptor constructs a LoggerInterceptor
func (*LoggerInterceptor) Logger ¶
func (i *LoggerInterceptor) Logger( ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler, ) (resp interface{}, err error)
Logger Interceptor
type Server ¶
type Server struct { TokenService *services.TokenService UserDataService services.UserDataService GroupDataService services.GroupDataService TaskDataService services.TaskDataService FileDataService services.FileDataService // contains filtered or unexported fields }
Server is a struct that stores the API Apps high level attributes such as the router, config, and services
func NewServer ¶
func NewServer(log utilities.Logger, cfg *config.Configuration, u services.UserDataService, g services.GroupDataService, t services.TaskDataService, f services.FileDataService, ts *services.TokenService) *Server
NewServer is a function used to initialize a new Server struct
Click to show internal directories.
Click to hide internal directories.