service

package
v1.2.6 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2023 License: BSD-3-Clause Imports: 18 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 *mux.Router
	// 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) GetInterval added in v1.2.4

func (serviceInstance *ServiceClass) GetInterval() time.Duration

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(ctx context.Context) 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