server

package
v0.0.0-...-60a9aaa Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPServer

type HTTPServer struct {
	Config  *config.Config
	Banners banner.Banner
}

func NewServer

func NewServer(conf *config.Config, banners banner.Banner) *HTTPServer

func (*HTTPServer) CreateBanner

func (s *HTTPServer) CreateBanner(w http.ResponseWriter, r *http.Request)

func (*HTTPServer) DeleteBanner

func (s *HTTPServer) DeleteBanner(w http.ResponseWriter, r *http.Request)

func (*HTTPServer) GetAdminBanner

func (s *HTTPServer) GetAdminBanner(w http.ResponseWriter, r *http.Request)

func (*HTTPServer) GetUserBanner

func (s *HTTPServer) GetUserBanner(w http.ResponseWriter, r *http.Request)

func (*HTTPServer) MakeToken

func (s *HTTPServer) MakeToken(w http.ResponseWriter, r *http.Request)

func (*HTTPServer) StartServer

func (s *HTTPServer) StartServer(ctx context.Context) error

func (*HTTPServer) UpdateActiveVersion

func (s *HTTPServer) UpdateActiveVersion(w http.ResponseWriter, r *http.Request)

func (*HTTPServer) UpdateBanner

func (s *HTTPServer) UpdateBanner(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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