model

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrFailedCreate = fmt.Errorf("failed to create!")
View Source
var ErrFailedCreateData = fmt.Errorf("data:%w", ErrFailedCreate)
View Source
var ErrNotFound = errors.New("not found!")
View Source
var ErrNotFoundData = fmt.Errorf("data:%w", ErrNotFound)

Functions

func GetRedisKey

func GetRedisKey(uid int64) string

Types

type PingCount

type PingCount int

type PingType

type PingType string
const (
	HTTP PingType = "http"
	GRPC PingType = "grpc"
)

type User

type User struct {
	Uid  int64  `redis:"uid"`
	Name string `redis:"name"`
	Sex  int64  `redis:"sex"`
}

Jump to

Keyboard shortcuts

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