client

package
v0.0.0-...-475b2a5 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2021 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Api

type Api interface {
	Ping(ctx context.Context) (string, error)
	GetStatDetail(ctx context.Context) (*jsonResult, error)
}

type ApiClient

type ApiClient struct {
	Host         string
	Port         int
	ConnPoolSize int
	// contains filtered or unexported fields
}

func (*ApiClient) Close

func (c *ApiClient) Close()

func (*ApiClient) GetAddr

func (c *ApiClient) GetAddr() string

func (*ApiClient) GetStatDetail

func (c *ApiClient) GetStatDetail(ctx context.Context) (*jsonResult, error)

func (*ApiClient) Init

func (c *ApiClient) Init(ctx context.Context)

func (*ApiClient) Ping

func (c *ApiClient) Ping(ctx context.Context) (string, error)

type MockServer

type MockServer struct {
	Host string
	Port int
	// contains filtered or unexported fields
}

func (*MockServer) Close

func (s *MockServer) Close()

func (*MockServer) GetAddr

func (s *MockServer) GetAddr() string

func (*MockServer) GetStatDetail

func (s *MockServer) GetStatDetail() (*jsonResult, error)

func (*MockServer) Init

func (s *MockServer) Init(ctx context.Context)

func (*MockServer) Ping

func (s *MockServer) Ping() (string, error)

type Networked

type Networked interface {
	Init(ctx context.Context)
	GetAddr() string
	Close()
}

type Server

type Server interface {
	Ping() (string, error)
	GetStatDetail() (*jsonResult, error)
}

Jump to

Keyboard shortcuts

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