server

package
v0.0.0-...-3f4cbe2 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option struct {
	Port   int `json:"port"`
	Logger struct {
		Path  string       `json:"path"`
		Level logrus.Level `json:"level"`
	} `json:"log"`
	Database struct {
		Type string `json:"type"`
		URI  string `json:"uri"`
	}
}

type Server

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

func NewServer

func NewServer(option Option) (*Server, error)

func (*Server) Run

func (s *Server) Run()

Jump to

Keyboard shortcuts

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