Versions in this module Expand all Collapse all v0 v0.2.0 Jul 28, 2021 v0.1.0 Jul 9, 2021 Changes in this version + type Client struct + func NewClient(address string) (*Client, error) + func (bc *Client) CheckDeregister(checkID string) error + func (bc *Client) CheckFail(checkID, note string) error + func (bc *Client) CheckPass(checkID, note string) error + func (bc *Client) CheckRegister(serviceID, checkID string, ttl string) error + func (bc *Client) GetOrCreateService(serviceID, serviceName string, tags []string, address string, port int) error + func (bc *Client) ServiceDeregister(serviceID string) error + type Instance struct + func NewConsulInstance(ctx context.Context, opt InstanceOptions) (*Instance, error) + func (i *Instance) CancelService() error + func (i *Instance) CheckDeregister() error + func (i *Instance) CheckPass() error + func (i *Instance) CheckRegister() error + func (i *Instance) DeregisterService() error + func (i *Instance) GetOrCreateService() error + func (i *Instance) KeepServiceAlive() error + func (i *Instance) Wait() + type InstanceOptions struct + Addr string + ConsulAddr string + Port int + SrvName string + TTL string + Tags []string