http

package
v0.26.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 19, 2026 License: MIT Imports: 27 Imported by: 0

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.

func (*Server) Run

func (s *Server) Run() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址