integrationsystem

package
v0.0.0-...-a423d60 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConverter

func NewConverter() *converter

NewConverter missing godoc

func NewRepository

func NewRepository(conv Converter) *pgRepository

NewRepository missing godoc

func NewService

func NewService(intSysRepo IntegrationSystemRepository, uidService UIDService) *service

NewService missing godoc

Types

type Collection

type Collection []Entity

Collection missing godoc

func (Collection) Len

func (c Collection) Len() int

Len missing godoc

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

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

type UIDService

type UIDService interface {
	Generate() string
}

UIDService missing godoc

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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