Documentation ¶
Index ¶
- Variables
- type ServiceClass
- func (serviceInstance *ServiceClass) AddRoute(routes ...*api.Api)
- func (serviceInstance *ServiceClass) GetAccessHost() string
- func (serviceInstance *ServiceClass) GetAccessPort() uint64
- func (serviceInstance *ServiceClass) GetApis() []*api.Api
- func (serviceInstance *ServiceClass) GetDescription() string
- func (serviceInstance *ServiceClass) GetHost() string
- func (serviceInstance *ServiceClass) GetInterval() time.Duration
- func (serviceInstance *ServiceClass) GetName() string
- func (serviceInstance *ServiceClass) GetPath() string
- func (serviceInstance *ServiceClass) GetPort() uint64
- func (serviceInstance *ServiceClass) Run(ctx context.Context) error
- func (serviceInstance *ServiceClass) SetAccessHost(accessHost string)
- func (serviceInstance *ServiceClass) SetAccessPort(accessPort uint64)
- func (serviceInstance *ServiceClass) SetDescription(desc string)
- func (serviceInstance *ServiceClass) SetHealthyCheckFunc(func_ func()) *ServiceClass
- func (serviceInstance *ServiceClass) SetHost(host string)
- func (serviceInstance *ServiceClass) SetName(name string)
- func (serviceInstance *ServiceClass) SetPath(path string)
- func (serviceInstance *ServiceClass) SetPort(port uint64)
- func (serviceInstance *ServiceClass) SetRoutes(routes ...[]*api.Api)
- func (serviceInstance *ServiceClass) Stop() error
Constants ¶
This section is empty.
Variables ¶
View Source
var Service = NewService(`default`)
Default Service instance
Functions ¶
This section is empty.
Types ¶
type ServiceClass ¶
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) 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
Click to show internal directories.
Click to hide internal directories.