client

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2022 License: BSD-3-Clause Imports: 9 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterClient added in v0.9.0

func RegisterClient(ctx context.Context, scheme string, f ClientInitializeFunc) error

func Schemes added in v0.9.0

func Schemes() []string

Types

type Client added in v0.9.0

type Client interface {
	NextInt(context.Context) (int64, error)
}

func NewClient added in v0.9.0

func NewClient(ctx context.Context, uri string) (Client, error)

type ClientInitializeFunc added in v0.9.0

type ClientInitializeFunc func(ctx context.Context, uri string) (Client, error)

type TCPClient

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

func NewTCPClient

func NewTCPClient(u *url.URL) (*TCPClient, error)

func (*TCPClient) NextInt

func (cl *TCPClient) NextInt(ctx context.Context) (int64, error)

Jump to

Keyboard shortcuts

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