Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var DB *pop.Connection
DB is a connection to your database to be used throughout your application.
Functions ¶
This section is empty.
Types ¶
type Post ¶
type Post struct {
ID uuid.UUID `json:"id" db:"id"`
CreatedAt time.Time `json:"created_at" db:"created_at"`
UpdatedAt time.Time `json:"updated_at" db:"updated_at"`
Title string `json:"title" db:"title"`
Content string `json:"content" db:"content"`
UserID uuid.UUID `json:"user_id" db:"user_id" form:"-"`
}
Post struct for user posts
func (*Post) Validate ¶
Validate gets run everytime you call a "pop.Validate" method. This method is not required and may be deleted.
func (*Post) ValidateSave ¶
ValidateSave gets run everytime you call "pop.ValidateSave" method. This method is not required and may be deleted.
func (*Post) ValidateUpdate ¶
ValidateUpdate gets run everytime you call "pop.ValidateUpdate" method. This method is not required and may be deleted.
type User ¶
type User struct {
ID uuid.UUID `json:"id" db:"id"`
CreatedAt time.Time `json:"created_at" db:"created_at"`
UpdatedAt time.Time `json:"updated_at" db:"updated_at"`
Name string `json:"name" db:"name"`
Email nulls.String `json:"email" db:"email"`
ProviderUserid string `json:"provider_userid" db:"provider_userid"`
GravatarID nulls.String `json:"gravatar_id" db:"gravatar_id"`
Provider string `json:"provider" db:"provider"`
Nickname nulls.String `json:"nickname" db:"nickname"`
}
User struct
func (*User) Validate ¶
Validate gets run everytime you call a "pop.Validate" method. This method is not required and may be deleted.
func (*User) ValidateSave ¶
ValidateSave gets run everytime you call "pop.ValidateSave" method. This method is not required and may be deleted.
func (*User) ValidateUpdate ¶
ValidateUpdate gets run everytime you call "pop.ValidateUpdate" method. This method is not required and may be deleted.