client

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OptableRpcClient added in v1.0.1

type OptableRpcClient struct {
	*http.Client
	// contains filtered or unexported fields
}

func NewClient

func NewClient(url string, tokenSource TokenSource) *OptableRpcClient

func (*OptableRpcClient) CreateMatch added in v1.0.1

func (*OptableRpcClient) Do added in v1.0.1

func (c *OptableRpcClient) Do(ctx context.Context, method string, req, res proto.Message) error

func (*OptableRpcClient) GetMatchResults added in v1.0.1

func (*OptableRpcClient) GetResult added in v1.0.1

func (*OptableRpcClient) ListMatches added in v1.0.1

func (*OptableRpcClient) RegisterPartner added in v1.0.1

func (c *OptableRpcClient) RegisterPartner(ctx context.Context, req *v1.RegisterPartnerReq) error

func (*OptableRpcClient) RunMatch added in v1.0.1

type TokenSource

type TokenSource interface {
	Token(req *http.Request) (string, error)
}

type TokenSourceFn

type TokenSourceFn func(req *http.Request) (string, error)

func (TokenSourceFn) Token

func (fn TokenSourceFn) Token(req *http.Request) (string, error)

Jump to

Keyboard shortcuts

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