example

package
v0.1.21 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2020 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Address added in v0.1.16

type Address struct {
	Region  Region
	Country string `json:"country"`
	City    string `json:"location,omitempty"`
}

type Meta added in v0.1.16

type Meta struct {
	Status  Status
	Billing *Address `json:"billing,omitempty"`
	SubMeta *Meta    `json:"sub_meta,omitempty"`
}

type Profile

type Profile struct {
	Year      *bg.Int
	Time      time.Time
	Name      string
	Age       uint8
	U16       uint16
	U32       uint32
	U64       uint64
	U         uint
	I         int
	I64       int64
	I32       int32
	I16       int16
	I8        int8
	BT        byte
	Bool      bool
	F32       float32
	F64       float64
	Addresses []Address
	Meta      Meta
}

type Region added in v0.1.16

type Region string
const (
	APAC Region = "apac"
	EU   Region = "eu"
)

type Status added in v0.1.16

type Status int
const (
	Active  Status = 1
	Blocked Status = 2
	Removed Status = 3
)

type User

type User interface {
	// Get user profile
	Profile(ctx context.Context, token string, at time.Time, val *bg.Int) (*Profile, error)

	Latest(ctx context.Context, times []*time.Time, num int, info map[string]string) (time.Time, error)
	// contains filtered or unexported methods
}

General user profile access

Jump to

Keyboard shortcuts

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