api

package
v0.0.0-...-9fe20ad Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetCorsMiddleware

func SetCorsMiddleware(next http.Handler) http.Handler

Types

type Hello

type Hello struct {
	Log *zlog.ZwitLogger
}

func NewHello

func NewHello(log *zlog.ZwitLogger) *Hello

func (*Hello) ServeHTTP

func (h *Hello) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type KeyUserData

type KeyUserData struct{}

type Media

type Media struct {
	Log *zlog.ZwitLogger
	// contains filtered or unexported fields
}

func (*Media) FilesServerLoggingMiddleware

func (m *Media) FilesServerLoggingMiddleware(next http.Handler) http.Handler

func (*Media) ServeHTTP

func (m *Media) ServeHTTP(rw http.ResponseWriter, r *http.Request)

func (*Media) VerifyTokenMiddleware

func (m *Media) VerifyTokenMiddleware(next http.Handler) http.Handler

type User

type User struct {
	Id       int64  `json:"id"`
	Username string `json:"username"`
	Created  string `json:"created"`
}

Jump to

Keyboard shortcuts

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