service

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2020 License: BSD-3-Clause Imports: 16 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Service = NewService(`default`)

Default Service instance

Functions

This section is empty.

Types

type ServiceClass

type ServiceClass struct {
	Mux *http.ServeMux
	// contains filtered or unexported fields
}

func NewService added in v1.0.5

func NewService(name string) *ServiceClass

New Service instance

func (*ServiceClass) AddRoute added in v1.0.2

func (serviceInstance *ServiceClass) AddRoute(routes ...*api.Api)

func (*ServiceClass) GetAccessHost

func (serviceInstance *ServiceClass) GetAccessHost() string

func (*ServiceClass) GetAccessPort

func (serviceInstance *ServiceClass) GetAccessPort() uint64

func (*ServiceClass) GetApis

func (serviceInstance *ServiceClass) GetApis() []*api.Api

func (*ServiceClass) GetDescription

func (serviceInstance *ServiceClass) GetDescription() string

func (*ServiceClass) GetHost

func (serviceInstance *ServiceClass) GetHost() string

func (*ServiceClass) GetName

func (serviceInstance *ServiceClass) GetName() string

func (*ServiceClass) GetPath

func (serviceInstance *ServiceClass) GetPath() string

func (*ServiceClass) GetPort

func (serviceInstance *ServiceClass) GetPort() uint64

func (*ServiceClass) Run

func (serviceInstance *ServiceClass) Run() error

func (*ServiceClass) SetAccessHost

func (serviceInstance *ServiceClass) SetAccessHost(accessHost string)

func (*ServiceClass) SetAccessPort

func (serviceInstance *ServiceClass) SetAccessPort(accessPort uint64)

func (*ServiceClass) SetDescription

func (serviceInstance *ServiceClass) SetDescription(desc string)

func (*ServiceClass) SetHealthyCheckFunc

func (serviceInstance *ServiceClass) SetHealthyCheckFunc(func_ func()) *ServiceClass

func (*ServiceClass) SetHost

func (serviceInstance *ServiceClass) SetHost(host string)

func (*ServiceClass) SetName

func (serviceInstance *ServiceClass) SetName(name string)

func (*ServiceClass) SetPath

func (serviceInstance *ServiceClass) SetPath(path string)

func (*ServiceClass) SetPort

func (serviceInstance *ServiceClass) SetPort(port uint64)

func (*ServiceClass) SetRoutes

func (serviceInstance *ServiceClass) SetRoutes(routes ...[]*api.Api)

func (*ServiceClass) Stop added in v1.0.5

func (serviceInstance *ServiceClass) Stop() error

Jump to

Keyboard shortcuts

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