boot

package module
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2021 License: MIT Imports: 10 Imported by: 0

README

boot基础框架

Jetbrains官方授权

goland

Documentation

Index

Constants

View Source
const (
	Success                     = 1
	DefaultPersonasCacheTimeout = 60
	DefaultPersonasMax          = 512
	DefaultPersonasRedisPrefix  = "boot:pns:"
)
View Source
const (
	Ok = "OK"
)

Variables

View Source
var (
	Decr = -1

	SetValue = struct{}{}

	AcquireArgs = func() []interface{} {
		return argsPool.Get().([]interface{})
	}

	ReleaseArgs = func(args []interface{}) {
		if args == nil {
			return
		}

		args = args[:0]
		argsPool.Put(args)
	}
)
View Source
var (
	ErrIpV4Address = errors.New(`invalid ip v4 address`)
)

Functions

func Bytes2Int64

func Bytes2Int64(data []byte) (num int64)

func HashOrNumber

func HashOrNumber(key interface{}) (value uint32)

func Ip2Long added in v1.0.8

func Ip2Long(ip string) (ipVal uint32, err error)

func Json

func Json(filePath string, out interface{}) (err error)

func Long2Ip added in v1.0.8

func Long2Ip(ipVal uint32) string

func Yaml

func Yaml(filePath string, out interface{}) (err error)

Types

type CanHash

type CanHash interface {
	HashCode() (hashValue uint32)
}

type DoubleNode

type DoubleNode struct {
	Value interface{}
	Left  unsafe.Pointer
	Right unsafe.Pointer
}

func NewDoubleNode

func NewDoubleNode(value interface{}, left unsafe.Pointer, right unsafe.Pointer) (node *DoubleNode)

type Node

type Node struct {
	Value interface{}
}

func NewNode

func NewNode(value interface{}) *Node

type SingleNode

type SingleNode struct {
	Value interface{}
	Right unsafe.Pointer
}

func NewSingleNode

func NewSingleNode(value interface{}, right unsafe.Pointer) (node *SingleNode)

Jump to

Keyboard shortcuts

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