client

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 License: Apache-2.0 Imports: 6 Imported by: 2

Documentation

Index

Constants

View Source
const (
	ContentTypeJSON = "application/json"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	PushStats(ctx context.Context, payload api.Stats)
	PushCreate(ctx context.Context, payload api.Create)
	PushDelete(ctx context.Context, payload api.Delete)
	PushUpdate(ctx context.Context, payload api.Update)
}

func New

func New(baseClient http.Client, baseURL string) Client

func NewNewOp

func NewNewOp() Client

type HTTP

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

func (*HTTP) PushCreate

func (h *HTTP) PushCreate(ctx context.Context, payload api.Create)

func (*HTTP) PushDelete

func (h *HTTP) PushDelete(ctx context.Context, payload api.Delete)

func (*HTTP) PushStats

func (h *HTTP) PushStats(ctx context.Context, payload api.Stats)

func (*HTTP) PushUpdate

func (h *HTTP) PushUpdate(ctx context.Context, payload api.Update)

Jump to

Keyboard shortcuts

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