model

package
v0.0.0-...-19284bb Latest Latest
Warning

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

Go to latest
Published: Aug 29, 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 Account

type Account struct {
	ID            string               `json:"id"`
	Name          string               `json:"name"`
	ServedBy      string               `json:"servedBy"`
	Quote         Quote                `json:"quote"`
	ImageData     model.AccountImage   `json:"imageData"`
	AccountEvents []model.AccountEvent `json:"accountEvents"`
}

Account defines ... gorm:"ForeignKey:QuoteID"

func (*Account) ToString

func (a *Account) ToString() string

ToString is a somewhat generic ToString method.

type Quote

type Quote struct {
	Text     string `json:"quote"`
	ServedBy string `json:"l"`
	Language string `json:"language"`
}

Quote defines a Quote as provided by the quotes-service

type VipNotification

type VipNotification struct {
	AccountID string `json:"accountId"`
	ReadAt    string `json:"readAt"`
}

VipNotification defines a struct for keeping some make-believe stuff for demoing purposes.

Jump to

Keyboard shortcuts

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