http

package
v0.0.0-...-e6f5c9c Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2021 License: MIT Imports: 8 Imported by: 0

README

server-gin

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(httpSrv *http.Server, opts ...Option) server.Server

Types

type Option

type Option func(server *Server)

func Certificates

func Certificates(certFile string, keyFile string) Option

func Logger

func Logger(log logger.Logger) Option

type Server

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

func (*Server) IP

func (s *Server) IP() string

func (*Server) Port

func (s *Server) Port() int

func (*Server) Start

func (s *Server) Start(ctx context.Context) error

func (*Server) Stop

func (s *Server) Stop(ctx context.Context) error

func (*Server) Transport

func (s *Server) Transport() string

Jump to

Keyboard shortcuts

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