entity

package
v0.0.0-...-a40a463 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateID

func GenerateID() string

GenerateID generates a unique ID that can be used as an identifier for an entity.

Types

type Album

type Album struct {
	ID        string    `json:"id"`
	Name      string    `json:"name"`
	CreatedAt time.Time `json:"created_at"`
	UpdatedAt time.Time `json:"updated_at"`
}

Album represents an album record.

type Donation

type Donation struct {
	ID            string    `json:"id"`
	Email         string    `json:"email"`
	MakeAnonymous bool      `json:"make_anonymous"`
	Recurring     bool      `json:"recurring"`
	Campaign      string    `json:"campaign"`
	Amount        float32   `json:"amount"`
	City          string    `json:"city"`
	State         string    `json:"state"`
	FirstDonation bool      `json:"first_donation"`
	DonatedAt     time.Time `json:"donated_at"`
	CreatedAt     time.Time `json:"created_at"`
	UpdatedAt     time.Time `json:"updated_at"`
}

Donation represents an donation record.

type User

type User struct {
	ID   string
	Name string
}

User represents a user.

func (User) GetID

func (u User) GetID() string

GetID returns the user ID.

func (User) GetName

func (u User) GetName() string

GetName returns the user name.

Jump to

Keyboard shortcuts

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