http

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct{}

func NewClient

func NewClient() *Client

func (*Client) PostJSON

func (c *Client) PostJSON(url string, body interface{}) (*fasthttp.Response, error)

type Options

type Options struct {
	Name string
	Host string
	Port int
	Mode string
}

func NewOptions

func NewOptions(v *viper.Viper) (*Options, error)

type Server

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

func New

func New(o *Options, router *fasthttp.RequestHandler) (*Server, error)

func (*Server) Application

func (s *Server) Application(name string)

func (*Server) Start

func (s *Server) Start() error

func (*Server) Stop

func (s *Server) Stop() error

Jump to

Keyboard shortcuts

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