deserialize

package
v0.0.0-...-7bcc545 Latest Latest
Warning

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

Go to latest
Published: May 27, 2021 License: Apache-2.0, MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NIL       byte = 0
	RECORD    byte = 1
	REFERENCE byte = 2
)

Functions

func RByte

func RByte(ctx *CreatePollDeserializeContext, err error) (byte, error)

func RNum

func RNum(ctx *CreatePollDeserializeContext, err error) (int64, error)

func RStr

func RTime

func RTime(ctx *CreatePollDeserializeContext, err error) (time.Time, error)

Types

type CreatePollDeserializeContext

type CreatePollDeserializeContext struct {
	IdRefs            *CreatePollIdReferences
	Index             int
	LocMaps           *LocationMaps
	CtxMapByLabelName map[string][]*CreatePollDeserializeContext
	ReqLocSets        *LocationSets
	Request           *CreatePollRequest
	RequestInput
	RequestNewLabelMapByName map[string]*models.PollsLabel
	ThemeMap                 *map[int64]models.Theme
	Tomorrow                 time.Time
}

type CreatePollIdReferences

type CreatePollIdReferences struct {
	FactorPositionIdRefs map[int64]map[int]*CreatePollRequest
	FactorIdRefs         map[int64]map[int]*CreatePollRequest
	PositionIdRefs       map[int64]map[int]*CreatePollRequest
	LabelIdRefs          map[int64]map[int]*CreatePollRequest
	ParentPollIdRefs     map[int64]map[int]*CreatePollRequest
}

type CreatePollRequest

type CreatePollRequest struct {
	Ctx           *fasthttp.RequestCtx
	Done          chan bool
	Index         int
	Poll          models.Poll
	ResponseData  *[]byte
	UserAccountId int64
}

type LocationMaps

type LocationMaps struct {
	ContinentMap map[int64]models.Continent
	CountryMap   map[int64]models.Country
	CountyMap    map[int64]models.County
	StateMap     map[int64]models.State
	TownMap      map[int64]models.Town
}

type LocationSets

type LocationSets struct {
	ContinentSet map[int64]bool
	CountrySet   map[int64]bool
	CountySet    map[int64]bool
	StateSet     map[int64]bool
	TownSet      map[int64]bool
}

type RequestInput

type RequestInput struct {
	Cursor  *int64
	Data    *[]byte
	DataLen int64
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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