Documentation ¶
Index ¶
- Variables
- type AuthOps
- type Dlr
- type DlrBase
- type DlrBaseInput
- type DlrCore
- type DlrCoreInput
- type DlrDto
- type DlrFilterDto
- type DlrFilterInput
- type DlrInput
- type DlrSortField
- type DlrStatus
- type DlrType
- type Dlrs
- type Error
- type ErrorDto
- type LoginRequest
- type LoginRequestDto
- type LoginRequestInput
- type Mutation
- type PageInput
- type PasswordStatus
- type Permission
- type PermissionGroup
- type Query
- type Role
- type RoleFilterInput
- type Subscription
- type Token
- type TokenDto
- type TokenInput
- type User
- type UserBase
- type UserBaseInput
- type UserDto
- type UserFilterDto
- type UserFilterInput
- type UserInput
- type UserPassword
- type UserPasswordDto
- type UserPasswordInput
- type UserSortField
- type UserStatus
- type UserType
- type Users
Constants ¶
This section is empty.
Variables ¶
var AllDlrSortField = []DlrSortField{ DlrSortFieldNone, DlrSortFieldID, DlrSortFieldCreatedAt, DlrSortFieldUpdatedAt, }
var AllDlrStatus = []DlrStatus{ DlrStatusNone, DlrStatusActive, DlrStatusInactive, }
var AllDlrType = []DlrType{ DlrTypeNone, }
var AllPasswordStatus = []PasswordStatus{ PasswordStatusNone, PasswordStatusActive, PasswordStatusInactive, PasswordStatusAutoGenerated, PasswordStatusChangeRequired, PasswordStatusExpired, }
var AllUserSortField = []UserSortField{ UserSortFieldNone, UserSortFieldID, UserSortFieldName, UserSortFieldCreatedAt, UserSortFieldUpdatedAt, }
var AllUserStatus = []UserStatus{ UserStatusNone, UserStatusActive, UserStatusInactive, }
var AllUserType = []UserType{ UserTypeNone, UserTypeAdmin, UserTypeUser, }
var DlrSortField_name = map[int32]DlrSortField{ 0: DlrSortFieldNone, 1: DlrSortFieldID, 2: DlrSortFieldCreatedAt, 3: DlrSortFieldUpdatedAt, }
var DlrSortField_value = map[DlrSortField]int32{
DlrSortFieldNone: 0,
DlrSortFieldID: 1,
DlrSortFieldCreatedAt: 2,
DlrSortFieldUpdatedAt: 3,
}
var DlrStatus_name = map[int32]DlrStatus{ 0: DlrStatusNone, 1: DlrStatusActive, 2: DlrStatusInactive, }
var DlrStatus_value = map[DlrStatus]int32{
DlrStatusNone: 0,
DlrStatusActive: 1,
DlrStatusInactive: 2,
}
var DlrType_name = map[int32]DlrType{ 0: DlrTypeNone, }
var DlrType_value = map[DlrType]int32{
DlrTypeNone: 0,
}
var PasswordStatus_name = map[int32]PasswordStatus{ 0: PasswordStatusNone, 1: PasswordStatusActive, 2: PasswordStatusInactive, 3: PasswordStatusAutoGenerated, 4: PasswordStatusChangeRequired, 5: PasswordStatusExpired, }
var PasswordStatus_value = map[PasswordStatus]int32{
PasswordStatusNone: 0,
PasswordStatusActive: 1,
PasswordStatusInactive: 2,
PasswordStatusAutoGenerated: 3,
PasswordStatusChangeRequired: 4,
PasswordStatusExpired: 5,
}
var UserSortField_name = map[int32]UserSortField{ 0: UserSortFieldNone, 1: UserSortFieldID, 2: UserSortFieldName, 3: UserSortFieldCreatedAt, 4: UserSortFieldUpdatedAt, }
var UserSortField_value = map[UserSortField]int32{
UserSortFieldNone: 0,
UserSortFieldID: 1,
UserSortFieldName: 2,
UserSortFieldCreatedAt: 3,
UserSortFieldUpdatedAt: 4,
}
var UserStatus_name = map[int32]UserStatus{ 0: UserStatusNone, 1: UserStatusActive, 2: UserStatusInactive, }
var UserStatus_value = map[UserStatus]int32{
UserStatusNone: 0,
UserStatusActive: 1,
UserStatusInactive: 2,
}
var UserType_name = map[int32]UserType{ 0: UserTypeNone, 1: UserTypeAdmin, 2: UserTypeUser, }
var UserType_value = map[UserType]int32{
UserTypeNone: 0,
UserTypeAdmin: 1,
UserTypeUser: 2,
}
Functions ¶
This section is empty.
Types ¶
type Dlr ¶
type Dlr struct { // Id is the id of the dlr ID string `json:"Id"` // DlrType is the type of the dlr DlrType DlrType `json:"DlrType"` // DlrStatus is the status of the dlr DlrStatus DlrStatus `json:"DlrStatus"` // DlrBase is the base values of the dlr DlrBase *DlrBase `json:"DlrBase"` // DlrCore is the core values of the dlr DlrCore *DlrCore `json:"DlrCore"` // CreatedAt is the create time of the dlr CreatedAt time.Time `json:"CreatedAt"` // UpdatedAt is the update time of the dlr UpdatedAt time.Time `json:"UpdatedAt"` }
Dlr represents the basic values of the dlr
type DlrBase ¶
type DlrBase struct { // Tags are the tag labels of the dlr Tags []string `json:"Tags"` }
DlrBase represents the base values of the dlr
type DlrBaseInput ¶
type DlrBaseInput struct { // Tags are the tag labels of the dlr Tags []string `json:"Tags,omitempty"` }
DlrBase represents the base values of the dlr
type DlrCore ¶
type DlrCore struct { // DlrData is the dlr data of the dlr DlrData string `json:"DlrData"` }
DlrCore represents the core values of the dlr
type DlrCoreInput ¶
type DlrCoreInput struct { // DlrData is the dlr data of the dlr DlrData *string `json:"DlrData,omitempty"` }
DlrCore represents the core values of the dlr
type DlrDto ¶
DlrDto is a struct that represents the dto of a dlr basic values.
type DlrFilterDto ¶
type DlrFilterDto struct { ModelInputData *DlrFilterInput PbData *pb.DlrFilter }
DlrFilterDto is a struct that provides filtering requested dlr data.
func NewDlrFilterDto ¶
func NewDlrFilterDto(modelInputData *DlrFilterInput) *DlrFilterDto
NewDlrFilterDto creates a new *DlrFilterDto.
func (*DlrFilterDto) ToPb ¶
func (u *DlrFilterDto) ToPb() *pb.DlrFilter
ToPb converts *ModelInputData to *PbData and returns it.
type DlrFilterInput ¶
type DlrFilterInput struct { // Id is the id of the dlr ID *string `json:"Id,omitempty"` // DlrType is the type of the dlr DlrType *DlrType `json:"DlrType,omitempty"` // DlrStatus is the status of the dlr DlrStatus *DlrStatus `json:"DlrStatus,omitempty"` // Tags are the tag labels of the dlr Tags []string `json:"Tags,omitempty"` // CreatedAtFrom is the start value of the create time of the dlr CreatedAtFrom *time.Time `json:"CreatedAtFrom,omitempty"` // CreatedAtTo is the end value of the create time of the dlr CreatedAtTo *time.Time `json:"CreatedAtTo,omitempty"` // UpdatedAtFrom is the start value of the update time of the dlr UpdatedAtFrom *time.Time `json:"UpdatedAtFrom,omitempty"` // UpdatedAtTo is the end value of the update time of the dlr UpdatedAtTo *time.Time `json:"UpdatedAtTo,omitempty"` // SearchText is the value of the full text search SearchText *string `json:"SearchText,omitempty"` // SortType is the sorting type. It can be only ASC or DESC SortType *string `json:"SortType,omitempty"` // SortField is the sortable field of the dlr SortField *DlrSortField `json:"SortField,omitempty"` // PageInput is used for pagination Pagination *PageInput `json:"Pagination,omitempty"` }
DlrFilterInput is used for filtering the Dlrs
type DlrInput ¶
type DlrInput struct { // Id is the id of the dlr ID *string `json:"Id,omitempty"` // DlrStatus is the status of the dlr DlrType *DlrType `json:"DlrType,omitempty"` // DlrStatus is the status of the dlr DlrStatus *DlrStatus `json:"DlrStatus,omitempty"` // DlrBase is the base values of the dlr DlrBase *DlrBaseInput `json:"DlrBase,omitempty"` // DlrCore is the core values of the dlr DlrCore *DlrCoreInput `json:"DlrCore,omitempty"` }
Dlr represents the basic values of the dlr
type DlrSortField ¶
type DlrSortField string
const ( // No Type DlrSortFieldNone DlrSortField = "None" // Id DlrSortFieldID DlrSortField = "Id" // Created Time DlrSortFieldCreatedAt DlrSortField = "CreatedAt" // Updated Time DlrSortFieldUpdatedAt DlrSortField = "UpdatedAt" )
func (DlrSortField) IsValid ¶
func (e DlrSortField) IsValid() bool
func (DlrSortField) MarshalGQL ¶
func (e DlrSortField) MarshalGQL(w io.Writer)
func (DlrSortField) String ¶
func (e DlrSortField) String() string
func (*DlrSortField) UnmarshalGQL ¶
func (e *DlrSortField) UnmarshalGQL(v interface{}) error
type DlrStatus ¶
type DlrStatus string
func (DlrStatus) MarshalGQL ¶
func (*DlrStatus) UnmarshalGQL ¶
type DlrType ¶
type DlrType string
const ( // No Type DlrTypeNone DlrType = "NONE" )
func (DlrType) MarshalGQL ¶
func (*DlrType) UnmarshalGQL ¶
type Error ¶
type Error struct {
Error string `json:"Error"`
}
Error represents the built-in error message
type LoginRequest ¶
type LoginRequest struct { // UserName is the user name of the user UserName string `json:"UserName"` // Email is the email address of the user Email string `json:"Email"` // Password is the password of the user Password string `json:"Password"` }
Login Request provides to authenticate in the system
type LoginRequestDto ¶
type LoginRequestDto struct { ModelData *LoginRequest ModelInputData *LoginRequestInput PbData *pb.LoginRequest }
LoginRequestDto is a struct that represents the dto of a user basic values.
func NewLoginRequestDto ¶
func NewLoginRequestDto(modelInputData *LoginRequestInput) *LoginRequestDto
NewLoginRequestDto creates a new *LoginRequestDto.
func (*LoginRequestDto) ToModel ¶
func (u *LoginRequestDto) ToModel() *LoginRequest
ToModel converts *PbData to *ModelData and returns it.
func (*LoginRequestDto) ToPb ¶
func (u *LoginRequestDto) ToPb() *pb.LoginRequest
ToPb converts *ModelInputData to *PbData and returns it.
type LoginRequestInput ¶
type PageInput ¶
type PageInput struct { // Limit is the max count of return values Limit *int32 `json:"Limit,omitempty"` // Offset is the starting point of limitation Offset *int32 `json:"Offset,omitempty"` }
PageInput is used for pagination
type PasswordStatus ¶
type PasswordStatus string
const ( // No Type PasswordStatusNone PasswordStatus = "NONE" // Active PasswordStatusActive PasswordStatus = "ACTIVE" // Inactive PasswordStatusInactive PasswordStatus = "INACTIVE" // Auto Generated PasswordStatusAutoGenerated PasswordStatus = "AUTO_GENERATED" // Change Required PasswordStatusChangeRequired PasswordStatus = "CHANGE_REQUIRED" // Expired PasswordStatusExpired PasswordStatus = "EXPIRED" )
func (PasswordStatus) IsValid ¶
func (e PasswordStatus) IsValid() bool
func (PasswordStatus) MarshalGQL ¶
func (e PasswordStatus) MarshalGQL(w io.Writer)
func (PasswordStatus) String ¶
func (e PasswordStatus) String() string
func (*PasswordStatus) UnmarshalGQL ¶
func (e *PasswordStatus) UnmarshalGQL(v interface{}) error
type Permission ¶
type Permission struct { // Policy represents the built-in policy type Policy string `json:"Policy"` }
Permission represents the built-in policies
type PermissionGroup ¶
type PermissionGroup struct { // GroupName is the name of the group of permission GroupName string `json:"GroupName"` // Permissions represents the built-in policies Permissions []*Permission `json:"Permissions"` }
PermissionGroup represents the built-in groups of permissions
type Role ¶
type Role struct { // RoleName is the name of the role of permission RoleName string `json:"RoleName"` // PermissionGroup represents the built-in groups of permissions PermissionGroups []*PermissionGroup `json:"PermissionGroups"` }
Role represents the built-in role types
type RoleFilterInput ¶
type RoleFilterInput struct { // RoleName is the name of the role of permission RoleName *string `json:"RoleName,omitempty"` }
RoleFilterInput is used for filtering the Roles
type Subscription ¶
type Subscription struct { }
type Token ¶
type Token struct { // AuthenticationToken is the authentication token AuthenticationToken string `json:"AuthenticationToken"` // RefreshToken is the refresh token RefreshToken string `json:"RefreshToken"` }
UserToken represents the object of a token for authentication
type TokenDto ¶
type TokenDto struct { ModelData *Token ModelInputData *TokenInput PbData *pb.Token }
TokenDto is a struct that is used for authentication.
func NewTokenDto ¶
func NewTokenDto(modelInputData *TokenInput) *TokenDto
NewTokenDto creates a new *TokenDto.
type TokenInput ¶
type User ¶
type User struct { // Id is the id of the user ID string `json:"Id"` // UserName is the user name of the user UserName string `json:"UserName"` // Email is the email address of the user Email string `json:"Email"` // Role is the role of the user Role string `json:"Role"` // UserType is the type of the user UserType UserType `json:"UserType"` // UserStatus is the status of the user UserStatus UserStatus `json:"UserStatus"` // UserBase is the base values of the user UserBase *UserBase `json:"UserBase"` // CreatedAt is the create time of the user CreatedAt time.Time `json:"CreatedAt"` // UpdatedAt is the update time of the user UpdatedAt time.Time `json:"UpdatedAt"` }
User represents the basic values of the user
type UserBase ¶
type UserBase struct { // Tags are the tag labels of the user Tags []string `json:"Tags"` // FirstName is the first name of the user FirstName string `json:"FirstName"` // LastName is the last name of the user LastName string `json:"LastName"` }
UserBase represents the base values of the user
type UserBaseInput ¶
type UserBaseInput struct { // Tags are the tag labels of the user Tags []string `json:"Tags,omitempty"` // FirstName is the first name of the user FirstName *string `json:"FirstName,omitempty"` // LastName is the last name of the user LastName *string `json:"LastName,omitempty"` }
UserBase represents the base values of the user
type UserDto ¶
UserDto is a struct that represents the dto of a user basic values.
func NewUserDto ¶
NewUserDto creates a new *UserDto.
type UserFilterDto ¶
type UserFilterDto struct { ModelInputData *UserFilterInput PbData *pb.UserFilter }
UserFilterDto is a struct that provides filtering requested user data.
func NewUserFilterDto ¶
func NewUserFilterDto(modelInputData *UserFilterInput) *UserFilterDto
NewUserFilterDto creates a new *UserFilterDto.
func (*UserFilterDto) ToPb ¶
func (u *UserFilterDto) ToPb() *pb.UserFilter
ToPb converts *ModelInputData to *PbData and returns it.
type UserFilterInput ¶
type UserFilterInput struct { // Id is the id of the user ID *string `json:"Id,omitempty"` // UserName is the user name of the user UserName *string `json:"UserName,omitempty"` // Email is the email address of the user Email *string `json:"Email,omitempty"` // UserType is the type of the user UserType *UserType `json:"UserType,omitempty"` // UserStatus is the status of the user UserStatus *UserStatus `json:"UserStatus,omitempty"` // Tags are the tag labels of the user Tags []string `json:"Tags,omitempty"` // FirstName is the first name of the user FirstName *string `json:"FirstName,omitempty"` // LastName is the last name of the user LastName *string `json:"LastName,omitempty"` // CreatedAtFrom is the start value of the create time of the user CreatedAtFrom *time.Time `json:"CreatedAtFrom,omitempty"` // CreatedAtTo is the end value of the create time of the user CreatedAtTo *time.Time `json:"CreatedAtTo,omitempty"` // UpdatedAtFrom is the start value of the update time of the user UpdatedAtFrom *time.Time `json:"UpdatedAtFrom,omitempty"` // UpdatedAtTo is the end value of the update time of the user UpdatedAtTo *time.Time `json:"UpdatedAtTo,omitempty"` // SearchText is the value of the full text search SearchText *string `json:"SearchText,omitempty"` // SortType is the sorting type. It can be only ASC or DESC SortType *string `json:"SortType,omitempty"` // SortField is the sortable field of the user SortField *UserSortField `json:"SortField,omitempty"` // PageInput is used for pagination Pagination *PageInput `json:"Pagination,omitempty"` }
UserFilterInput is used for filtering the Users
type UserInput ¶
type UserInput struct { // Id is the id of the user ID *string `json:"Id,omitempty"` // UserName is the user name of the user UserName *string `json:"UserName,omitempty"` // Email is the email address of the user Email *string `json:"Email,omitempty"` // Role is the role of the user Role *string `json:"Role,omitempty"` // UserStatus is the status of the user UserType *UserType `json:"UserType,omitempty"` // UserStatus is the status of the user UserStatus *UserStatus `json:"UserStatus,omitempty"` // UserBase is the base values of the user UserBase *UserBaseInput `json:"UserBase,omitempty"` }
User represents the basic values of the user
type UserPassword ¶
type UserPassword struct { // Id is the id of the user password ID string `json:"Id"` // UserId is the id of the user UserID string `json:"UserId"` // Password is the password of the user Password string `json:"Password"` // PasswordStatus is the status of password of the user PasswordStatus PasswordStatus `json:"PasswordStatus"` }
UserPassword represents the password values of the user
type UserPasswordDto ¶
type UserPasswordDto struct { ModelData *UserPassword ModelInputData *UserPasswordInput PbData *pb.UserPassword }
UserPasswordDto is a struct that represents the dto of a user password values.
func NewUserPasswordDto ¶
func NewUserPasswordDto(modelInputData *UserPasswordInput) *UserPasswordDto
NewUserPasswordDto creates a new *UserPasswordDto.
func (*UserPasswordDto) ToModel ¶
func (u *UserPasswordDto) ToModel() *UserPassword
ToModel converts *PbData to *ModelData and returns it.
func (*UserPasswordDto) ToPb ¶
func (u *UserPasswordDto) ToPb() *pb.UserPassword
ToPb converts *ModelInputData to *PbData and returns it.
type UserPasswordInput ¶
type UserPasswordInput struct { // Id is the id of the user password ID *string `json:"Id,omitempty"` // UserId is the id of the user UserID string `json:"UserId"` // Password is the password of the user Password string `json:"Password"` }
UserPassword represents the password values of the user
type UserSortField ¶
type UserSortField string
const ( // No Type UserSortFieldNone UserSortField = "None" // Id UserSortFieldID UserSortField = "Id" // Name UserSortFieldName UserSortField = "Name" // Created Time UserSortFieldCreatedAt UserSortField = "CreatedAt" // Updated Time UserSortFieldUpdatedAt UserSortField = "UpdatedAt" )
func (UserSortField) IsValid ¶
func (e UserSortField) IsValid() bool
func (UserSortField) MarshalGQL ¶
func (e UserSortField) MarshalGQL(w io.Writer)
func (UserSortField) String ¶
func (e UserSortField) String() string
func (*UserSortField) UnmarshalGQL ¶
func (e *UserSortField) UnmarshalGQL(v interface{}) error
type UserStatus ¶
type UserStatus string
const ( // No Type UserStatusNone UserStatus = "NONE" // Active UserStatusActive UserStatus = "ACTIVE" // Inactive UserStatusInactive UserStatus = "INACTIVE" )
func (UserStatus) IsValid ¶
func (e UserStatus) IsValid() bool
func (UserStatus) MarshalGQL ¶
func (e UserStatus) MarshalGQL(w io.Writer)
func (UserStatus) String ¶
func (e UserStatus) String() string
func (*UserStatus) UnmarshalGQL ¶
func (e *UserStatus) UnmarshalGQL(v interface{}) error