webhook

package
v0.0.0-...-ecc6c17 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConverter

func NewConverter(authConverter AuthConverter) *converter

func NewRepository

func NewRepository() *inMemoryRepository

func NewService

func NewService(repo WebhookRepository, uidSvc UIDService) *service

Types

type AuthConverter

type AuthConverter interface {
	ToGraphQL(in *model.Auth) *graphql.Auth
	InputFromGraphQL(in *graphql.AuthInput) *model.AuthInput
}

type UIDService

type UIDService interface {
	Generate() string
}

type WebhookRepository

type WebhookRepository interface {
	GetByID(id string) (*model.ApplicationWebhook, error)
	ListByApplicationID(applicationID string) ([]*model.ApplicationWebhook, error)
	Create(item *model.ApplicationWebhook) error
	Update(item *model.ApplicationWebhook) error
	Delete(item *model.ApplicationWebhook) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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