model

package
v0.0.0-...-c831c60 Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UserToProto

func UserToProto(u *User) *api.User

Types

type ServerAuthorizeResponse

type ServerAuthorizeResponse struct {
	ServerResponse
	Valid bool `json:"valid"`
	User  User `json:"user"`
}

type ServerResponse

type ServerResponse struct {
	Status      string `json:"status"`
	Description string `json:"description"`
}

Response to return to the client

type User

type User struct {
	Id       int    `json:"id"`
	Name     string `json:"name"`
	Password string `json:"password"`
	Token    string `json:"token"`
	Expires  string `json:"expires"`
}

User model

func UserFromProto

func UserFromProto(u *api.User) *User

type UserId

type UserId int

TODO: UserId -> UserID

Jump to

Keyboard shortcuts

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