http

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2021 License: BSD-3-Clause Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Provider

Functions

func NewRouter

func NewRouter(o *ServerOption, logger *zap.Logger, tracer opentracing.Tracer, init InitHandlers) *gin.Engine

NewRouter

Types

type InitHandlers added in v0.0.2

type InitHandlers func(r *gin.Engine)

InitHandlers

type Server

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

Server

func NewServer

func NewServer(o *ServerOption, logger *zap.Logger, router *gin.Engine) (*Server, error)

NewServer

func (*Server) AppName added in v0.0.5

func (s *Server) AppName(name string)

AppName

func (*Server) ConsulClient added in v0.0.5

func (s *Server) ConsulClient(cli *consulApi.Client)

ConsulClient

func (*Server) Start

func (s *Server) Start(opts ...options.ServerOptional) error

Start

func (*Server) Stop

func (s *Server) Stop() error

Stop

type ServerOption added in v0.0.8

type ServerOption struct {
	options.ServerOption
}

ServerOption

func NewOptions

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

NewOptions

Jump to

Keyboard shortcuts

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