test

package
v0.0.0-...-16d19c9 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPClient

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

func NewHTTPClient

func NewHTTPClient(addr string) *HTTPClient

func (*HTTPClient) CreatePath

func (*HTTPClient) CreateStat

func (c *HTTPClient) CreateStat(ctx context.Context, pathId string, body handler.CreateStatRequest) (int, error)

func (*HTTPClient) DeletePath

func (c *HTTPClient) DeletePath(ctx context.Context, pathId string) (int, error)

func (*HTTPClient) DeleteStat

func (c *HTTPClient) DeleteStat(ctx context.Context, pathId, statName string) (int, error)

func (*HTTPClient) FetchPath

func (c *HTTPClient) FetchPath(ctx context.Context, pathId string) (int, *handler.PathResponse, error)

func (*HTTPClient) FetchUserPaths

func (c *HTTPClient) FetchUserPaths(ctx context.Context, userId string) (int, []*pathmodel.Path, error)

func (*HTTPClient) MakeRequest

func (c *HTTPClient) MakeRequest(ctx context.Context, method string, url string, body any) (int, []byte, error)

func (*HTTPClient) SetJWT

func (c *HTTPClient) SetJWT(token string)

func (*HTTPClient) UpdatePath

func (c *HTTPClient) UpdatePath(ctx context.Context, pathId string, body pathmodel.Path) (int, error)

func (*HTTPClient) UpdateStat

func (c *HTTPClient) UpdateStat(ctx context.Context, pathId, statName string, newStat pathmodel.CountlessStat) (int, error)

Jump to

Keyboard shortcuts

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