api

package
v1.5.6 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2019 License: LGPL-3.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

func NewServer

func NewServer(address, uplPath, pofImgPath, emojiImgPath, hmacKey, originHost string, db *db.Database) *Server

NewServer create and return a new instance of API Server

func (Server) RunServer

func (server Server) RunServer() error

RunServer starting the API server

func (Server) ServeHTTP

func (server Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

type UploadServer

type UploadServer struct {
	UplPath      string
	ProfImgPath  string
	EmojiImgPath string
}

func (UploadServer) ServeHTTP

func (is UploadServer) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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