Documentation ¶
Index ¶
- func NewConverter() *converter
- func NewRepository(conv Converter) *pgRepository
- func NewService(intSysRepo IntegrationSystemRepository, uidService UIDService) *service
- type Collection
- type Converter
- type Entity
- type IntegrationSystemConverter
- type IntegrationSystemRepository
- type IntegrationSystemService
- type OAuth20Service
- type Resolver
- func (r *Resolver) Auths(ctx context.Context, obj *graphql.IntegrationSystem) ([]*graphql.IntSysSystemAuth, error)
- func (r *Resolver) IntegrationSystem(ctx context.Context, id string) (*graphql.IntegrationSystem, error)
- func (r *Resolver) IntegrationSystems(ctx context.Context, first *int, after *graphql.PageCursor) (*graphql.IntegrationSystemPage, error)
- func (r *Resolver) RegisterIntegrationSystem(ctx context.Context, in graphql.IntegrationSystemInput) (*graphql.IntegrationSystem, error)
- func (r *Resolver) UnregisterIntegrationSystem(ctx context.Context, id string) (*graphql.IntegrationSystem, error)
- func (r *Resolver) UpdateIntegrationSystem(ctx context.Context, id string, in graphql.IntegrationSystemInput) (*graphql.IntegrationSystem, error)
- type SystemAuthConverter
- type SystemAuthService
- type UIDService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewService ¶
func NewService(intSysRepo IntegrationSystemRepository, uidService UIDService) *service
NewService missing godoc
Types ¶
type Converter ¶
type Converter interface { ToEntity(in *model.IntegrationSystem) *Entity FromEntity(in *Entity) *model.IntegrationSystem }
Converter missing godoc
type Entity ¶
type Entity struct { ID string `db:"id"` Name string `db:"name"` Description *string `db:"description"` }
Entity missing godoc
type IntegrationSystemConverter ¶
type IntegrationSystemConverter interface { ToGraphQL(in *model.IntegrationSystem) *graphql.IntegrationSystem MultipleToGraphQL(in []*model.IntegrationSystem) []*graphql.IntegrationSystem InputFromGraphQL(in graphql.IntegrationSystemInput) model.IntegrationSystemInput }
IntegrationSystemConverter missing godoc
type IntegrationSystemRepository ¶
type IntegrationSystemRepository interface { Create(ctx context.Context, item model.IntegrationSystem) error Get(ctx context.Context, id string) (*model.IntegrationSystem, error) Exists(ctx context.Context, id string) (bool, error) List(ctx context.Context, pageSize int, cursor string) (model.IntegrationSystemPage, error) Update(ctx context.Context, model model.IntegrationSystem) error Delete(ctx context.Context, id string) error }
IntegrationSystemRepository missing godoc
type IntegrationSystemService ¶
type IntegrationSystemService interface { Create(ctx context.Context, in model.IntegrationSystemInput) (string, error) Get(ctx context.Context, id string) (*model.IntegrationSystem, error) List(ctx context.Context, pageSize int, cursor string) (model.IntegrationSystemPage, error) Update(ctx context.Context, id string, in model.IntegrationSystemInput) error Delete(ctx context.Context, id string) error }
IntegrationSystemService missing godoc
type OAuth20Service ¶
type OAuth20Service interface {
DeleteMultipleClientCredentials(ctx context.Context, auths []pkgmodel.SystemAuth) error
}
OAuth20Service missing godoc
type Resolver ¶
type Resolver struct {
// contains filtered or unexported fields
}
Resolver missing godoc
func NewResolver ¶
func NewResolver(transact persistence.Transactioner, intSysSvc IntegrationSystemService, sysAuthSvc SystemAuthService, oAuth20Svc OAuth20Service, intSysConverter IntegrationSystemConverter, sysAuthConverter SystemAuthConverter) *Resolver
NewResolver missing godoc
func (*Resolver) Auths ¶
func (r *Resolver) Auths(ctx context.Context, obj *graphql.IntegrationSystem) ([]*graphql.IntSysSystemAuth, error)
Auths missing godoc
func (*Resolver) IntegrationSystem ¶
func (r *Resolver) IntegrationSystem(ctx context.Context, id string) (*graphql.IntegrationSystem, error)
IntegrationSystem missing godoc
func (*Resolver) IntegrationSystems ¶
func (r *Resolver) IntegrationSystems(ctx context.Context, first *int, after *graphql.PageCursor) (*graphql.IntegrationSystemPage, error)
IntegrationSystems missing godoc
func (*Resolver) RegisterIntegrationSystem ¶
func (r *Resolver) RegisterIntegrationSystem(ctx context.Context, in graphql.IntegrationSystemInput) (*graphql.IntegrationSystem, error)
RegisterIntegrationSystem missing godoc
func (*Resolver) UnregisterIntegrationSystem ¶
func (r *Resolver) UnregisterIntegrationSystem(ctx context.Context, id string) (*graphql.IntegrationSystem, error)
UnregisterIntegrationSystem missing godoc
func (*Resolver) UpdateIntegrationSystem ¶
func (r *Resolver) UpdateIntegrationSystem(ctx context.Context, id string, in graphql.IntegrationSystemInput) (*graphql.IntegrationSystem, error)
UpdateIntegrationSystem missing godoc
type SystemAuthConverter ¶
type SystemAuthConverter interface {
ToGraphQL(in *pkgmodel.SystemAuth) (graphql.SystemAuth, error)
}
SystemAuthConverter missing godoc
type SystemAuthService ¶
type SystemAuthService interface {
ListForObject(ctx context.Context, objectType pkgmodel.SystemAuthReferenceObjectType, objectID string) ([]pkgmodel.SystemAuth, error)
}
SystemAuthService missing godoc
Click to show internal directories.
Click to hide internal directories.