client

package
v0.0.0-...-a305310 Latest Latest
Warning

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

Go to latest
Published: May 24, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiClient

type ApiClient struct {
	ServerUrl    string
	HttpClient   *http.Client
	Rng          *rand.Rand
	SuccessCount uint64
	ErrorCount   uint64
}

An api client that has a random number generator

func NewApiClient

func NewApiClient(transport *http.Transport, serverUrl string) *ApiClient

func (*ApiClient) SwipeLeftOrRight

func (client *ApiClient) SwipeLeftOrRight(ctx context.Context, direction string)

POST /swipe/{leftorright}/

Jump to

Keyboard shortcuts

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