Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SigKey = "mal3d1ct10n"
SigKey JWT signature key, you need to set your own!
Functions ¶
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 dotagiftx.UserService, au dotagiftx.AuthService, is dotagiftx.ImageService, its dotagiftx.ItemService, ms dotagiftx.MarketService, ts dotagiftx.TrackService, ss dotagiftx.StatsService, rs dotagiftx.ReportService, hs dotagiftx.HammerService, sc dotagiftx.SteamClient, ps *phantasm.Service, t *tracing.Tracer, c cacheManager, v *dotagiftx.Version, l *logrus.Logger, ) *Server
NewServer returns new http server.
Click to show internal directories.
Click to hide internal directories.