rpc

package
v0.0.0-...-3b47941 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2021 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClientConn

func GetClientConn() (*grpc.ClientConn, proto.ChatAuthClient, error)

func GetSnowflakeId

func GetSnowflakeId() string

func New

func New() *myRpc

func Sha1

func Sha1(s string) (str string)

Types

type User

type User struct {
	Id       int `gorm:"primaryKey"`
	Username string
	Password string
	Token    string

	CreateAt time.Time
	UpdateAt time.Time
}

func (User) TableName

func (User) TableName() string

Jump to

Keyboard shortcuts

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