dto

package
v1.10.3 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClaimsJWT

type ClaimsJWT struct {
	Email       string   `json:"email"`
	Username    string   `json:"username"`
	Permissions []string `json:"permissions"`
	jwt.StandardClaims
}

func (*ClaimsJWT) Valid

func (c *ClaimsJWT) Valid() error

type InviteUser

type InviteUser struct {
	Role         accountEnums.Role `json:"role"`
	Email        string            `json:"email"`
	RepositoryID uuid.UUID         `json:"repositoryID" swaggerignore:"true"`
	CompanyID    uuid.UUID         `json:"companyID" swaggerignore:"true"`
}

func (*InviteUser) SetInviteUserCompanyID

func (i *InviteUser) SetInviteUserCompanyID(companyID uuid.UUID) *InviteUser

func (*InviteUser) SetInviteUserRepositoryAndCompanyID

func (i *InviteUser) SetInviteUserRepositoryAndCompanyID(companyID, repositoryID uuid.UUID) *InviteUser

func (*InviteUser) ToAccountRepository

func (i *InviteUser) ToAccountRepository(accountID uuid.UUID) *roles.AccountRepository

func (*InviteUser) ToBytes

func (i *InviteUser) ToBytes() []byte

func (*InviteUser) Validate

func (i *InviteUser) Validate() error

type RemoveUser

type RemoveUser struct {
	AccountID    uuid.UUID `json:"accountID"`
	CompanyID    uuid.UUID `json:"companyID"`
	RepositoryID uuid.UUID `json:"repositoryID"`
}

func (*RemoveUser) SetAccountAndCompanyID

func (r *RemoveUser) SetAccountAndCompanyID(accountID, companyID uuid.UUID) *RemoveUser

func (*RemoveUser) SetAccountAndRepositoryID

func (r *RemoveUser) SetAccountAndRepositoryID(accountID, repositoryID uuid.UUID) *RemoveUser

Jump to

Keyboard shortcuts

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