rpc

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2024 License: Apache-2.0 Imports: 4 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(addr string) (*Client, error)

func NewClientWithPath

func NewClientWithPath(addr, path string) (*Client, error)

func (*Client) ChangeLogLevel

func (c *Client) ChangeLogLevel(ctx context.Context, level log.Level) error

func (*Client) Close

func (c *Client) Close() error

type Command

type Command uint8
const (
	Unknown Command = iota
	SetLevel
)

func (Command) String

func (c Command) String() string