Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SigKey = "mal3d1ct10n"
SigKey JWT signature key, you need to set your own!
Functions ¶
This section is empty.
Types ¶
type Claims ¶
type Claims struct {
UserID string
Level string
jwt.RegisteredClaims
}
Claims represents JWT payload.
type Server ¶
type Server struct {
// Server settings.
Addr string
// contains filtered or unexported fields
}
Server represents http Server.
func NewServer ¶
func NewServer( sigKey string, divineKey string, us userService, au authService, is imageService, its itemService, ms marketService, ts trackService, ss statsService, rs reportService, hs hammerService, sc steamClient, ps *phantasm.Service, t *tracing.Tracer, c cacheManager, v *dotagiftx.Version, l *slog.Logger, ) *Server
NewServer returns new http server.
Click to show internal directories.
Click to hide internal directories.