client

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	RegistryService kraken.ServiceRegistryClient
	ConfigService   kraken.ConfigClient
	// contains filtered or unexported fields
}

func NewClient

func NewClient(endpoint string) (*Client, error)

func (*Client) GetConfig

func (c *Client) GetConfig(ctx context.Context, id string) (*kraken.GetConfigResponse, error)

func (*Client) RegisterService

func (c *Client) RegisterService(ctx context.Context,
	port, region string, hb uint32,
) (*kraken.RegisterServiceResponse, error)

type Config

type Config struct {
	Endpoint  string `yaml:"endpoint"`
	Region    string `yaml:"region"`
	Heartbeat uint32 `yaml:"heartbeat_in_second"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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