server

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2019 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Logger

func Logger() gin.HandlerFunc

Logger forces gin to use our logger Adapted from gin.Logger

Types

type Server

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

Server represents API server

func New

func New(routes ...routes) *Server

New creates a new API server

func (*Server) Serve

func (s *Server) Serve() error

Serve starts API server

Jump to

Keyboard shortcuts

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