http

package
v0.0.0-...-8964234 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartHttpSrv

func StartHttpSrv(opt Option) error

start and register a micro http service

Types

type Option

type Option struct {
	ServiceName      string
	Handler          http.Handler
	Version          string
	MetaData         map[string]string
	RegisterTTL      time.Duration
	RegisterInterval time.Duration
}

Jump to

Keyboard shortcuts

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