dal

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrIncompleteTimeRange = status.Error(codes.InvalidArgument, "invalid time range, if specifying start or end time, you must specify both")
	ErrInvalidTimeRange    = status.Error(codes.InvalidArgument, "invalid time range, start time must be before end time")
	ErrLakeNameEmpty       = status.Error(codes.InvalidArgument, "lake name cannot be empty")
)

Functions

func NewConnectionAsync

func NewConnectionAsync(ctx context.Context, cancel context.CancelFunc, endpoint string, ch chan *Client) error

Types

type Client

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

func New

func New(opts ...ClientOption) (*Client, error)

func (*Client) Close

func (m *Client) Close() error

func (*Client) GetLakeInfo

func (m *Client) GetLakeInfo(ctx context.Context, lakeName string, startTime, endTime time.Time, latest bool) ([]*lakeinfov1.LakeInfoMeasurement, error)

func (*Client) Ping

func (m *Client) Ping() error

func (*Client) Setup

func (m *Client) Setup(ctx context.Context) error

func (*Client) StoreLakeInfo

func (m *Client) StoreLakeInfo(ctx context.Context, measurements []*lakeinfov1.LakeInfoMeasurement) error

type ClientOption

type ClientOption func(*Client)

Jump to

Keyboard shortcuts

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