Documentation ¶
Index ¶
- type HeaderType
- type Headers
- type ResponseWebhook
- type Webhook
- func (w *Webhook) GetHeaders() map[string]string
- func (w *Webhook) GetMethod() string
- func (w *Webhook) GetTable() string
- func (w *Webhook) SetCompanyIDAndRepositoryID(companyIDString, repositoryIDString string) (*Webhook, error)
- func (w *Webhook) SetWebhookID(id uuid.UUID) *Webhook
- func (w *Webhook) ToBytes() []byte
- func (w *Webhook) Validate() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HeaderType ¶
type HeaderType []Headers
func (*HeaderType) Scan ¶
func (h *HeaderType) Scan(value interface{}) error
type ResponseWebhook ¶
type ResponseWebhook struct { WebhookID uuid.UUID `json:"webhookID"` Description string `json:"description"` Method string `json:"method"` URL string `json:"url"` Headers HeaderType `json:"headers"` RepositoryID uuid.UUID `json:"repositoryID"` Repository account.Repository `json:"repository" gorm:"foreignkey:RepositoryID;association_foreignkey:RepositoryID"` CompanyID uuid.UUID `json:"companyID"` CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"` }
type Webhook ¶
type Webhook struct { WebhookID uuid.UUID `json:"webhookID" gorm:"primary_key" swaggerignore:"true"` Description string `json:"description"` URL string `json:"url"` Method string `json:"method"` Headers HeaderType `json:"headers"` RepositoryID uuid.UUID `json:"repositoryID" swaggerignore:"true"` CompanyID uuid.UUID `json:"companyID" swaggerignore:"true"` CreatedAt time.Time `json:"createdAt" swaggerignore:"true"` UpdatedAt time.Time `json:"updatedAt" swaggerignore:"true"` }
func (*Webhook) GetHeaders ¶
func (*Webhook) SetCompanyIDAndRepositoryID ¶
Click to show internal directories.
Click to hide internal directories.