models

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metadata

type Metadata map[string]interface{}

type User

type User struct {
	Id        string   `json:"Id"`
	CreatedAt string   `json:"CreatedAt"`
	Email     string   `json:"Email"`
	FullName  string   `json:"FullName"`
	HashPass  string   `json:"-"`
	Metadata  Metadata `json:"Metadata"`
}

func (User) String

func (t User) String() string

String returns a string representation of the user

type UsersRepository

type UsersRepository interface {
	Save(context.Context, *User) error
	Get(context.Context, string) (*User, error)
	Delete(context.Context, string) (string, error)
	Update(context.Context, *User) error
	GetByEmail(context.Context, string) (*User, error)
}

Jump to

Keyboard shortcuts

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