common

package
v1.0.125 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseReq

type BaseReq struct {
	Context Context `json:"-"`
	PrevID  int64   `json:"prevID"`
	LastID  int64   `json:"lastID"`
	CountQ  bool    `json:"countQ"`
	Offset  int64   `json:"offset"`
	Limit   int64   `json:"limit"`
}

func GetBaseReq

func GetBaseReq(ptr uintptr) *BaseReq

type Context

type Context struct {
	Identify   *Identify
	CacheAware func(ds ...string) (cache.Cache, error)
	RSA        crypto.Cipher
	Path       string
	System     *System
}

type Identify added in v1.0.29

type Identify struct {
	ID interface{}
}

func (*Identify) Int64 added in v1.0.29

func (s *Identify) Int64() int64

func (*Identify) ObjectID added in v1.0.29

func (s *Identify) ObjectID() primitive.ObjectID

func (*Identify) String added in v1.0.29

func (s *Identify) String() string

type System added in v1.0.116

type System struct {
	Name    string // 系统名
	Version string // 系统版本
}

Jump to

Keyboard shortcuts

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