api

package
v0.0.0-...-6ff84a0 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2021 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CORS

func CORS() gin.HandlerFunc

func UpdateResponse

func UpdateResponse(r *http.Response) error

Types

type HTTPServer

type HTTPServer struct {
	*gin.Engine
	// contains filtered or unexported fields
}

func NewHTTPServer

func NewHTTPServer(cfg *config.Config) (*HTTPServer, error)

func (*HTTPServer) Run

func (s *HTTPServer) Run()

type User

type User struct {
	Username string
	IsAdmin  bool
	UserID   uint
}

Jump to

Keyboard shortcuts

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