http

package
v0.0.0-...-7e7cc72 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

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

func (*Context) Context

func (c *Context) Context() context.Context

func (*Context) File

func (c *Context) File(httpCode int, data []byte, fileName string) error

func (*Context) GetFormFile

func (c *Context) GetFormFile(size int) ([]byte, string, int, error)

func (*Context) GetQuery

func (c *Context) GetQuery(key string) string

func (*Context) GetReqId

func (c *Context) GetReqId() string

func (*Context) JSON

func (c *Context) JSON(httpCode int, value interface{}) error

type Server

type Server interface {
	Run() error
	Stop() error
}

func NewHTTPServer

func NewHTTPServer(port int, httpController controller.HTTPController) Server

Jump to

Keyboard shortcuts

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