Documentation ¶
Index ¶
- type Account
- type Company
- type ConfigurationItem
- type CreateCompanyParams
- type CreateConfigItemParams
- type CreateDepartmentParams
- type CreateIncidentParams
- type CreateUserParams
- type DBTX
- type Department
- type GetUserByTknRow
- type GetUserRow
- type Incident
- type IncidentCategory
- type IncidentPriority
- type IncidentStatus
- type ListCompaniesParams
- type ListCompaniesRow
- type ListConfigItemsParams
- type ListConfigItemsRow
- type ListDepartmentsParams
- type ListDepartmentsRow
- type ListIncidentsParams
- type ListIncidentsRow
- type ListUsersParams
- type ListUsersRow
- type NullIncidentPriority
- type NullIncidentStatus
- type NullStateEnum
- type Permission
- type Queries
- func (q *Queries) CountCompanies(ctx context.Context, query sql.NullString) (int64, error)
- func (q *Queries) CountConfigItems(ctx context.Context, query sql.NullString) (int64, error)
- func (q *Queries) CountIncidents(ctx context.Context, query sql.NullString) (int64, error)
- func (q *Queries) CountUsers(ctx context.Context, query sql.NullString) (int64, error)
- func (q *Queries) CreateCompany(ctx context.Context, arg CreateCompanyParams) (Company, error)
- func (q *Queries) CreateConfigItem(ctx context.Context, arg CreateConfigItemParams) (ConfigurationItem, error)
- func (q *Queries) CreateDepartment(ctx context.Context, arg CreateDepartmentParams) (Department, error)
- func (q *Queries) CreateIncident(ctx context.Context, arg CreateIncidentParams) (Incident, error)
- func (q *Queries) CreateUser(ctx context.Context, arg CreateUserParams) (User, error)
- func (q *Queries) DeleteCompany(ctx context.Context, id uuid.UUID) (Company, error)
- func (q *Queries) DeleteConfigItem(ctx context.Context, id uuid.UUID) (ConfigurationItem, error)
- func (q *Queries) DeleteDepartment(ctx context.Context, id uuid.UUID) (Department, error)
- func (q *Queries) DeleteIncident(ctx context.Context, id uuid.UUID) (Incident, error)
- func (q *Queries) DeleteUser(ctx context.Context, id uuid.UUID) (User, error)
- func (q *Queries) GetCompany(ctx context.Context, id uuid.UUID) (Company, error)
- func (q *Queries) GetConfigItem(ctx context.Context, id uuid.UUID) (ConfigurationItem, error)
- func (q *Queries) GetDepartment(ctx context.Context, id uuid.UUID) (Department, error)
- func (q *Queries) GetIncident(ctx context.Context, id uuid.UUID) (Incident, error)
- func (q *Queries) GetUser(ctx context.Context, id uuid.UUID) (GetUserRow, error)
- func (q *Queries) GetUserByTkn(ctx context.Context, sessiontoken string) (GetUserByTknRow, error)
- func (q *Queries) ListCompanies(ctx context.Context, arg ListCompaniesParams) ([]ListCompaniesRow, error)
- func (q *Queries) ListConfigItems(ctx context.Context, arg ListConfigItemsParams) ([]ListConfigItemsRow, error)
- func (q *Queries) ListDepartments(ctx context.Context, arg ListDepartmentsParams) ([]ListDepartmentsRow, error)
- func (q *Queries) ListIncidents(ctx context.Context, arg ListIncidentsParams) ([]ListIncidentsRow, error)
- func (q *Queries) ListUsers(ctx context.Context, arg ListUsersParams) ([]ListUsersRow, error)
- func (q *Queries) UpdateCompany(ctx context.Context, arg UpdateCompanyParams) (Company, error)
- func (q *Queries) UpdateConfigItem(ctx context.Context, arg UpdateConfigItemParams) (ConfigurationItem, error)
- func (q *Queries) UpdateDepartment(ctx context.Context, arg UpdateDepartmentParams) (Department, error)
- func (q *Queries) UpdateIncident(ctx context.Context, arg UpdateIncidentParams) (Incident, error)
- func (q *Queries) UpdateUser(ctx context.Context, arg UpdateUserParams) (User, error)
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type Role
- type Service
- type Session
- type StateEnum
- type UpdateCompanyParams
- type UpdateConfigItemParams
- type UpdateDepartmentParams
- type UpdateIncidentParams
- type UpdateUserParams
- type User
- type UsersPermission
- type VerificationToken
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct { ID uuid.UUID `json:"id"` UserId uuid.UUID `json:"userId"` Type string `json:"type"` Provider string `json:"provider"` ProviderAccountId string `json:"providerAccountId"` RefreshToken sql.NullString `json:"refresh_token"` AccessToken sql.NullString `json:"access_token"` ExpiresAt sql.NullInt64 `json:"expires_at"` IDToken sql.NullString `json:"id_token"` Scope sql.NullString `json:"scope"` SessionState sql.NullString `json:"session_state"` TokenType sql.NullString `json:"token_type"` }
type ConfigurationItem ¶
type CreateCompanyParams ¶
type CreateConfigItemParams ¶
type CreateDepartmentParams ¶
type CreateIncidentParams ¶
type CreateUserParams ¶
type CreateUserParams struct { ID uuid.UUID `json:"id"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` FirstName sql.NullString `json:"first_name"` LastName sql.NullString `json:"last_name"` Email string `json:"email"` RoleID uuid.UUID `json:"role_id"` DepartmentID uuid.UUID `json:"department_id"` }
type Department ¶
type GetUserByTknRow ¶
type GetUserByTknRow struct { ID uuid.UUID `json:"id"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` FirstName sql.NullString `json:"first_name"` LastName sql.NullString `json:"last_name"` Email string `json:"email"` EmailVerified sql.NullTime `json:"emailVerified"` Name sql.NullString `json:"name"` Image sql.NullString `json:"image"` Active sql.NullBool `json:"active"` RoleID uuid.UUID `json:"role_id"` DepartmentID uuid.UUID `json:"department_id"` ID_2 uuid.UUID `json:"id_2"` UserId uuid.UUID `json:"userId"` Expires time.Time `json:"expires"` SessionToken string `json:"sessionToken"` }
type GetUserRow ¶
type GetUserRow struct { Active sql.NullBool `json:"active"` ID uuid.UUID `json:"id"` Email string `json:"email"` FirstName sql.NullString `json:"first_name"` LastName sql.NullString `json:"last_name"` RoleID uuid.UUID `json:"role_id"` RoleName string `json:"role_name"` DepartmentID uuid.UUID `json:"department_id"` DepartmentName sql.NullString `json:"department_name"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` }
type IncidentCategory ¶
type IncidentPriority ¶
type IncidentPriority string
const ( IncidentPriorityCritical IncidentPriority = "critical" IncidentPriorityHigh IncidentPriority = "high" IncidentPriorityMedium IncidentPriority = "medium" IncidentPriorityLow IncidentPriority = "low" )
func (*IncidentPriority) Scan ¶
func (e *IncidentPriority) Scan(src interface{}) error
type IncidentStatus ¶
type IncidentStatus string
const ( IncidentStatusNew IncidentStatus = "new" IncidentStatusAssigned IncidentStatus = "assigned" IncidentStatusInProgress IncidentStatus = "in_progress" IncidentStatusPending IncidentStatus = "pending" IncidentStatusResolved IncidentStatus = "resolved" IncidentStatusClosed IncidentStatus = "closed" IncidentStatusCancelled IncidentStatus = "cancelled" )
func (*IncidentStatus) Scan ¶
func (e *IncidentStatus) Scan(src interface{}) error
type ListCompaniesParams ¶
type ListCompaniesParams struct { Limit int32 `json:"limit"` Offset int32 `json:"offset"` Query sql.NullString `json:"query"` OrderBy interface{} `json:"order_by"` OrderDir interface{} `json:"order_dir"` }
type ListCompaniesRow ¶
type ListConfigItemsParams ¶
type ListConfigItemsParams struct { Limit int32 `json:"limit"` Offset int32 `json:"offset"` Query sql.NullString `json:"query"` OrderBy interface{} `json:"order_by"` OrderDir interface{} `json:"order_dir"` }
type ListConfigItemsRow ¶
type ListDepartmentsParams ¶
type ListDepartmentsParams struct { Limit int32 `json:"limit"` Offset int32 `json:"offset"` Query sql.NullString `json:"query"` OrderBy interface{} `json:"order_by"` OrderDir interface{} `json:"order_dir"` }
type ListDepartmentsRow ¶
type ListIncidentsParams ¶
type ListIncidentsParams struct { Limit int32 `json:"limit"` Offset int32 `json:"offset"` Query sql.NullString `json:"query"` OrderBy interface{} `json:"order_by"` OrderDir interface{} `json:"order_dir"` }
type ListIncidentsRow ¶
type ListIncidentsRow struct { TotalCount int64 `json:"total_count"` ID uuid.UUID `json:"id"` Title string `json:"title"` ShortDescription string `json:"short_description"` Description sql.NullString `json:"description"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` }
type ListUsersParams ¶
type ListUsersParams struct { Limit int32 `json:"limit"` Offset int32 `json:"offset"` Query sql.NullString `json:"query"` OrderBy interface{} `json:"order_by"` OrderDir interface{} `json:"order_dir"` }
type ListUsersRow ¶
type ListUsersRow struct { TotalCount int64 `json:"total_count"` Active sql.NullBool `json:"active"` ID uuid.UUID `json:"id"` Email string `json:"email"` FirstName sql.NullString `json:"first_name"` LastName sql.NullString `json:"last_name"` RoleID uuid.UUID `json:"role_id"` RoleName string `json:"role_name"` DepartmentID uuid.UUID `json:"department_id"` DepartmentName sql.NullString `json:"department_name"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` }
type NullIncidentPriority ¶
type NullIncidentPriority struct { IncidentPriority IncidentPriority `json:"incident_priority"` Valid bool `json:"valid"` // Valid is true if IncidentPriority is not NULL }
func (*NullIncidentPriority) Scan ¶
func (ns *NullIncidentPriority) Scan(value interface{}) error
Scan implements the Scanner interface.
type NullIncidentStatus ¶
type NullIncidentStatus struct { IncidentStatus IncidentStatus `json:"incident_status"` Valid bool `json:"valid"` // Valid is true if IncidentStatus is not NULL }
func (*NullIncidentStatus) Scan ¶
func (ns *NullIncidentStatus) Scan(value interface{}) error
Scan implements the Scanner interface.
type NullStateEnum ¶
type NullStateEnum struct { StateEnum StateEnum `json:"state_enum"` Valid bool `json:"valid"` // Valid is true if StateEnum is not NULL }
func (*NullStateEnum) Scan ¶
func (ns *NullStateEnum) Scan(value interface{}) error
Scan implements the Scanner interface.
type Permission ¶
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CountCompanies ¶
func (*Queries) CountConfigItems ¶
func (*Queries) CountIncidents ¶
func (*Queries) CountUsers ¶
func (*Queries) CreateCompany ¶
func (*Queries) CreateConfigItem ¶
func (q *Queries) CreateConfigItem(ctx context.Context, arg CreateConfigItemParams) (ConfigurationItem, error)
func (*Queries) CreateDepartment ¶
func (q *Queries) CreateDepartment(ctx context.Context, arg CreateDepartmentParams) (Department, error)
func (*Queries) CreateIncident ¶
func (*Queries) CreateUser ¶
func (*Queries) DeleteCompany ¶
func (*Queries) DeleteConfigItem ¶
func (*Queries) DeleteDepartment ¶
func (*Queries) DeleteIncident ¶
func (*Queries) DeleteUser ¶
func (*Queries) GetCompany ¶
func (*Queries) GetConfigItem ¶
func (*Queries) GetDepartment ¶
func (*Queries) GetIncident ¶
func (*Queries) GetUserByTkn ¶
func (*Queries) ListCompanies ¶
func (q *Queries) ListCompanies(ctx context.Context, arg ListCompaniesParams) ([]ListCompaniesRow, error)
func (*Queries) ListConfigItems ¶
func (q *Queries) ListConfigItems(ctx context.Context, arg ListConfigItemsParams) ([]ListConfigItemsRow, error)
func (*Queries) ListDepartments ¶
func (q *Queries) ListDepartments(ctx context.Context, arg ListDepartmentsParams) ([]ListDepartmentsRow, error)
func (*Queries) ListIncidents ¶
func (q *Queries) ListIncidents(ctx context.Context, arg ListIncidentsParams) ([]ListIncidentsRow, error)
func (*Queries) ListUsers ¶
func (q *Queries) ListUsers(ctx context.Context, arg ListUsersParams) ([]ListUsersRow, error)
func (*Queries) UpdateCompany ¶
func (*Queries) UpdateConfigItem ¶
func (q *Queries) UpdateConfigItem(ctx context.Context, arg UpdateConfigItemParams) (ConfigurationItem, error)
func (*Queries) UpdateDepartment ¶
func (q *Queries) UpdateDepartment(ctx context.Context, arg UpdateDepartmentParams) (Department, error)
func (*Queries) UpdateIncident ¶
func (*Queries) UpdateUser ¶
type UpdateCompanyParams ¶
type UpdateConfigItemParams ¶
type UpdateDepartmentParams ¶
type UpdateIncidentParams ¶
type UpdateUserParams ¶
type User ¶
type User struct { ID uuid.UUID `json:"id"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` FirstName sql.NullString `json:"first_name"` LastName sql.NullString `json:"last_name"` Email string `json:"email"` EmailVerified sql.NullTime `json:"emailVerified"` Name sql.NullString `json:"name"` Image sql.NullString `json:"image"` Active sql.NullBool `json:"active"` RoleID uuid.UUID `json:"role_id"` DepartmentID uuid.UUID `json:"department_id"` }
type UsersPermission ¶
Click to show internal directories.
Click to hide internal directories.