service

package
v0.0.0-...-ed63d74 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(_address, _path string) error

Types

type Service

type Service struct {
	Name         string
	Port         int
	ConsulAgent  *consul.Agent
	ConsulHealth *consul.Health
}

func NewService

func NewService(name string, port int) (*Service, error)

func (*Service) ServeHTTP

func (s *Service) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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