leo

package module
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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

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

func NewApp

func NewApp(opts ...Option) *App

func (*App) Run

func (app *App) Run() error

type Option

type Option func(*App)

func ID

func ID(id string) Option

func Logger

func Logger(log logger.Logger) Option

func Metadata

func Metadata(md map[string]string) Option

func Name

func Name(name string) Option

func ProfileAddr

func ProfileAddr(addr string) Option

func ProfileEnable

func ProfileEnable(enable bool) Option

func Registrar

func Registrar(reg registry.Registrar) Option

func Resolver

func Resolver(rsv registry.Resolver) Option

func Server

func Server(srv server.Server) Option

func Version

func Version(version string) Option

Directories

Path Synopsis
zap
Package http enables the http profiler
Package http enables the http profiler

Jump to

Keyboard shortcuts

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