local

package
v0.0.0-...-1bf96ee Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2022 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Default_timeOut int64 = 0
)

Variables

This section is empty.

Functions

func InitLocal

func InitLocal()

Init 初始化本地local

func InitMapping

func InitMapping()

Init

func InitServiceSql

func InitServiceSql()

Init

Types

type Local

type Local struct {
	// contains filtered or unexported fields
}
var G_Local *Local

func (*Local) DelToken

func (r *Local) DelToken(format, id string) (result int64, err error)

func (*Local) GetMapping

func (r *Local) GetMapping(zKey string) (mapping mapping.MappingDto, err error)

func (*Local) GetServiceSql

func (r *Local) GetServiceSql(sqlCode string) (serviceSql serviceSql.ServiceSqlDto, err error)

func (*Local) GetToken

func (r *Local) GetToken(format, id string) (token string, err error)

func (*Local) GetValue

func (r *Local) GetValue(key string) (string, error)

func (*Local) GetValueAndRemove

func (r *Local) GetValueAndRemove(key string) (string, error)

func (*Local) SaveMapping

func (r *Local) SaveMapping(mappingDto mapping.MappingDto) (err error)

func (*Local) SaveServiceSql

func (r *Local) SaveServiceSql(serviceSqlDto serviceSql.ServiceSqlDto) (err error)

func (*Local) SetToken

func (r *Local) SetToken(format string, id string, token string) (err error)

func (*Local) SetValue

func (r *Local) SetValue(key string, value string, timeout ...int64) (err error)

Jump to

Keyboard shortcuts

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