mdsclient

package
v0.1.4-alpha.4 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2022 License: AGPL-3.0 Imports: 15 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 {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(ctx context.Context, logger *zap.Logger, config *ClientConfig) (*Client, error)

func (*Client) GetPublicKey

func (c *Client) GetPublicKey() ed25519.PublicKey

func (*Client) GetSession

func (c *Client) GetSession() (*Session, error)

type ClientConfig

type ClientConfig struct {
	Endpoint  string
	Store     string
	SecretKey string
	Width     int
}

type Session

type Session struct {
	// contains filtered or unexported fields
}

func (*Session) Close

func (s *Session) Close()

func (*Session) SendRequest

func (s *Session) SendRequest(req *protocol.Request) (*protocol.Response, error)

type WsConn

type WsConn struct {
	// contains filtered or unexported fields
}

func (*WsConn) NextReadDeadline

func (ws *WsConn) NextReadDeadline() time.Time

Jump to

Keyboard shortcuts

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