Documentation ¶
Index ¶
Constants ¶
View Source
const ( // InvalidInput indicates an inputs is not valid InvalidInput = 1 // InvalidLogin indicates an incorrect login InvalidLogin = 10 )
Variables ¶
This section is empty.
Functions ¶
func UserMutationField ¶
UserMutationField for mutating users
Types ¶
type Resource ¶
type Resource struct { ID int64 `json:"id" db:"id"` OwnerID int64 `db:"owner_id"` SinkID int64 `db:"sink_id"` Name string `json:"name" db:"name"` Path string `json:"path" db:"path"` CreatedAt time.Time `db:"created_at"` UpdatedAt time.Time `db:"updated_at"` }
Resource model
type Sink ¶
type Sink struct { ID int `json:"id" db:"id"` SinkType int8 `json:"type" db:"sink_type"` CreatedAt time.Time `db:"created_at"` UpdatedAt time.Time `db:"updated_at"` Name pgtype.Varchar `json:"name" db:"name"` Description pgtype.Varchar `json:"description" db:"description"` }
Sink model
type User ¶
type User struct { ID int64 `json:"id" db:"id"` Name string `json:"name" db:"name"` Email string `json:"email" db:"email"` Password string `db:"password"` IsEnabled bool `json:"enabled" db:"is_enabled"` IsAdmin bool `json:"admin" db:"is_admin"` CreatedAt time.Time `json:"created_at" db:"created_at"` UpdatedAt time.Time `json:"updated_at" db:"updated_at"` LoginAt time.Time `json:"login_at" db:"login_at"` VerifyAt time.Time `json:"verify_at" db:"verify_at"` DisabledAt time.Time `json:"disabled_at" db:"disabled_at"` }
User struct
Click to show internal directories.
Click to hide internal directories.