models

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

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

Go to latest
Published: Sep 10, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewUUID

func NewUUID() uuid.UUID

Types

type User

type User struct {
	ID          uuid.UUID
	CreatedTime time.Time
	UpdatedTime time.Time

	Email string
	Name  string
	Slug  string
}

Represents a user of the API

func (*User) Clone

func (s *User) Clone() User

func (*User) EnsureID

func (s *User) EnsureID()

func (*User) HasID

func (s *User) HasID() bool

Jump to

Keyboard shortcuts

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