base

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Stat *stat

Stat 应用内统计

Functions

This section is empty.

Types

type ErrorInfo

type ErrorInfo struct {
	URL    string
	ErrMsg string
	Num    uint64
}

type HttpCodeInfo

type HttpCodeInfo struct {
	URL  string
	Code int
	Num  uint64
}

type RequestInfo

type RequestInfo struct {
	URL  string
	Code int
	Num  uint64
}

RequestInfo 请求url信息

type Storage

type Storage struct {
	sync.Map
}

func NewStorage

func NewStorage() *Storage

func (*Storage) All

func (s *Storage) All() map[string]interface{}

func (*Storage) Exists

func (s *Storage) Exists(key interface{}) bool

func (*Storage) GetUint64

func (s *Storage) GetUint64(key interface{}) (uint64, bool)

func (*Storage) Len

func (s *Storage) Len() uint

Jump to

Keyboard shortcuts

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