Documentation
¶
Index ¶
- Variables
- type Builder
- func (b *Builder) Build() (*Integration, error)
- func (b *Builder) Description(description string) *Builder
- func (b *Builder) Developer(developer UserID) *Builder
- func (b *Builder) GenerateToken() *Builder
- func (b *Builder) ID(id ID) *Builder
- func (b *Builder) LogoUrl(logoURL *url.URL) *Builder
- func (b *Builder) MustBuild() *Integration
- func (b *Builder) Name(name string) *Builder
- func (b *Builder) NewID() *Builder
- func (b *Builder) Token(token string) *Builder
- func (b *Builder) Type(t Type) *Builder
- func (b *Builder) UpdatedAt(updatedAt time.Time) *Builder
- func (b *Builder) Webhook(webhook []*Webhook) *Builder
- type ID
- type Integration
- func (i *Integration) AddWebhook(w *Webhook)
- func (i *Integration) Clone() *Integration
- func (i *Integration) CreatedAt() time.Time
- func (i *Integration) DeleteWebhook(wId WebhookID) bool
- func (i *Integration) Description() string
- func (i *Integration) Developer() UserID
- func (i *Integration) ID() ID
- func (i *Integration) LogoUrl() *url.URL
- func (i *Integration) Name() string
- func (i *Integration) RandomToken()
- func (i *Integration) SetDescription(description string)
- func (i *Integration) SetDeveloper(developer UserID)
- func (i *Integration) SetLogoUrl(logoUrl *url.URL)
- func (i *Integration) SetName(name string)
- func (i *Integration) SetToken(token string)
- func (i *Integration) SetType(t Type)
- func (i *Integration) SetUpdatedAt(updatedAt time.Time)
- func (i *Integration) SetWebhook(webhook []*Webhook)
- func (i *Integration) Token() string
- func (i *Integration) Type() Type
- func (i *Integration) UpdateWebhook(wId WebhookID, w *Webhook) bool
- func (i *Integration) UpdatedAt() time.Time
- func (i *Integration) Webhook(wId WebhookID) (*Webhook, bool)
- func (i *Integration) Webhooks() []*Webhook
- type List
- type ModelID
- type Type
- type UserID
- type Webhook
- func (w *Webhook) Active() bool
- func (w *Webhook) Clone() *Webhook
- func (w *Webhook) CreatedAt() time.Time
- func (w *Webhook) ID() WebhookID
- func (w *Webhook) Name() string
- func (w *Webhook) Secret() string
- func (w *Webhook) SetActive(active bool)
- func (w *Webhook) SetName(name string)
- func (w *Webhook) SetSecret(secret string)
- func (w *Webhook) SetTrigger(trigger WebhookTrigger)
- func (w *Webhook) SetURL(url *url.URL)
- func (w *Webhook) SetUpdatedAt(updatedAt time.Time)
- func (w *Webhook) Trigger() WebhookTrigger
- func (w *Webhook) URL() *url.URL
- func (w *Webhook) UpdatedAt() time.Time
- type WebhookBuilder
- func (b *WebhookBuilder) Active(active bool) *WebhookBuilder
- func (b *WebhookBuilder) Build() (*Webhook, error)
- func (b *WebhookBuilder) ID(wId WebhookID) *WebhookBuilder
- func (b *WebhookBuilder) MustBuild() *Webhook
- func (b *WebhookBuilder) Name(name string) *WebhookBuilder
- func (b *WebhookBuilder) NewID() *WebhookBuilder
- func (b *WebhookBuilder) Secret(secret string) *WebhookBuilder
- func (b *WebhookBuilder) Trigger(trigger WebhookTrigger) *WebhookBuilder
- func (b *WebhookBuilder) UpdatedAt(updatedAt time.Time) *WebhookBuilder
- func (b *WebhookBuilder) Url(url *url.URL) *WebhookBuilder
- type WebhookID
- type WebhookTrigger
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidID = id.ErrInvalidID
View Source
var IDFrom = id.IntegrationIDFrom
View Source
var IDFromRef = id.IntegrationIDFromRef
View Source
var MustID = id.MustIntegrationID
View Source
var NewID = id.NewIntegrationID
View Source
var NewWebhookID = id.NewWebhookID
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
func (*Builder) Build ¶
func (b *Builder) Build() (*Integration, error)
func (*Builder) Description ¶
func (*Builder) GenerateToken ¶
func (*Builder) MustBuild ¶
func (b *Builder) MustBuild() *Integration
type ID ¶
type ID = id.IntegrationID
type Integration ¶
type Integration struct {
// contains filtered or unexported fields
}
func (*Integration) AddWebhook ¶
func (i *Integration) AddWebhook(w *Webhook)
func (*Integration) Clone ¶
func (i *Integration) Clone() *Integration
func (*Integration) CreatedAt ¶
func (i *Integration) CreatedAt() time.Time
func (*Integration) DeleteWebhook ¶
func (i *Integration) DeleteWebhook(wId WebhookID) bool
func (*Integration) Description ¶
func (i *Integration) Description() string
func (*Integration) Developer ¶
func (i *Integration) Developer() UserID
func (*Integration) ID ¶
func (i *Integration) ID() ID
func (*Integration) LogoUrl ¶
func (i *Integration) LogoUrl() *url.URL
func (*Integration) Name ¶
func (i *Integration) Name() string
func (*Integration) RandomToken ¶
func (i *Integration) RandomToken()
func (*Integration) SetDescription ¶
func (i *Integration) SetDescription(description string)
func (*Integration) SetDeveloper ¶
func (i *Integration) SetDeveloper(developer UserID)
func (*Integration) SetLogoUrl ¶
func (i *Integration) SetLogoUrl(logoUrl *url.URL)
func (*Integration) SetName ¶
func (i *Integration) SetName(name string)
func (*Integration) SetToken ¶
func (i *Integration) SetToken(token string)
func (*Integration) SetType ¶
func (i *Integration) SetType(t Type)
func (*Integration) SetUpdatedAt ¶
func (i *Integration) SetUpdatedAt(updatedAt time.Time)
func (*Integration) SetWebhook ¶
func (i *Integration) SetWebhook(webhook []*Webhook)
func (*Integration) Token ¶
func (i *Integration) Token() string
func (*Integration) Type ¶
func (i *Integration) Type() Type
func (*Integration) UpdateWebhook ¶
func (i *Integration) UpdateWebhook(wId WebhookID, w *Webhook) bool
func (*Integration) UpdatedAt ¶
func (i *Integration) UpdatedAt() time.Time
func (*Integration) Webhooks ¶
func (i *Integration) Webhooks() []*Webhook
type List ¶
type List []*Integration
type UserID ¶
type UserID = accountdomain.UserID
type Webhook ¶
type Webhook struct {
// contains filtered or unexported fields
}
func (*Webhook) SetTrigger ¶
func (w *Webhook) SetTrigger(trigger WebhookTrigger)
func (*Webhook) SetUpdatedAt ¶
func (*Webhook) Trigger ¶
func (w *Webhook) Trigger() WebhookTrigger
type WebhookBuilder ¶
type WebhookBuilder struct {
// contains filtered or unexported fields
}
func NewWebhookBuilder ¶
func NewWebhookBuilder() *WebhookBuilder
func (*WebhookBuilder) Active ¶
func (b *WebhookBuilder) Active(active bool) *WebhookBuilder
func (*WebhookBuilder) Build ¶
func (b *WebhookBuilder) Build() (*Webhook, error)
func (*WebhookBuilder) ID ¶
func (b *WebhookBuilder) ID(wId WebhookID) *WebhookBuilder
func (*WebhookBuilder) MustBuild ¶
func (b *WebhookBuilder) MustBuild() *Webhook
func (*WebhookBuilder) Name ¶
func (b *WebhookBuilder) Name(name string) *WebhookBuilder
func (*WebhookBuilder) NewID ¶
func (b *WebhookBuilder) NewID() *WebhookBuilder
func (*WebhookBuilder) Secret ¶
func (b *WebhookBuilder) Secret(secret string) *WebhookBuilder
func (*WebhookBuilder) Trigger ¶
func (b *WebhookBuilder) Trigger(trigger WebhookTrigger) *WebhookBuilder
func (*WebhookBuilder) UpdatedAt ¶
func (b *WebhookBuilder) UpdatedAt(updatedAt time.Time) *WebhookBuilder
func (*WebhookBuilder) Url ¶
func (b *WebhookBuilder) Url(url *url.URL) *WebhookBuilder
type WebhookTrigger ¶
func (WebhookTrigger) Disable ¶
func (t WebhookTrigger) Disable(et event.Type)
func (WebhookTrigger) Enable ¶
func (t WebhookTrigger) Enable(et event.Type)
Click to show internal directories.
Click to hide internal directories.