net

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2021 License: ISC Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxRetries = 5
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Net

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

func New

func New(secret string, api string, sdkType string, sdkVersion string) *Net

func (*Net) GetStatsigMetadata

func (n *Net) GetStatsigMetadata() StatsigMetadata

func (*Net) PostRequest

func (n *Net) PostRequest(
	endpoint string,
	in interface{},
	out interface{},
) error

func (*Net) RetryablePostRequest added in v0.2.0

func (n *Net) RetryablePostRequest(
	endpoint string,
	in interface{},
	out interface{},
	retries int,
) error

type StatsigMetadata

type StatsigMetadata struct {
	SDKType    string `json:"sdkType"`
	SDKVersion string `json:"sdkVersion"`
}

Jump to

Keyboard shortcuts

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