models

package
v0.0.0-...-50f4c6c Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type User

type User struct {
	ID       uint64 `gorm:"column:id;primary_key;auto_increment;" json:"id"`
	Username string `gorm:"column:username;not null;unique_index:username" json:"username" form:"username"`
	Hash     string `gorm:"column:hash;not null;" json:"hash"`
}

func (User) ToGRPC

func (u User) ToGRPC() *grpc.User

Jump to

Keyboard shortcuts

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