kv

package
v0.15.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseURLGRPC

func ParseURLGRPC(s string) (string, bool, error)

Types

type Client

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

func NewClient

func NewClient(ctx context.Context, p NewClientParams) (*Client, error)

func (*Client) Get

func (c *Client) Get(ctx context.Context, name string) (io.ReadCloser, error)

func (*Client) Put

func (c *Client) Put(ctx context.Context, params PutParams) (io.WriteCloser, error)

type NewClientParams

type NewClientParams struct {
	UseInsecure bool
	Host        string
	DialTimeout time.Duration
	ClientName  string
	Token       string
}

type PutParams

type PutParams struct {
	Name      string
	Sha256Sum string
	FileSize  int64
}

Jump to

Keyboard shortcuts

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