ticket

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Providers

func Providers() []string

Providers returns registered adapter names.

func RegisterProvider

func RegisterProvider(name string, constructor ProviderConstructor) error

RegisterProvider registers a ticket provider constructor.

Types

type Provider

type Provider interface {
	Query(ctx context.Context, query schema.TicketQuery) ([]schema.Ticket, error)
	Get(ctx context.Context, id string) (schema.Ticket, error)
	Create(ctx context.Context, in schema.CreateTicketInput) (schema.Ticket, error)
	Update(ctx context.Context, id string, in schema.UpdateTicketInput) (schema.Ticket, error)
}

Provider defines the capability surface for ticketing adapters.

type ProviderConstructor

type ProviderConstructor func(config map[string]any) (Provider, error)

ProviderConstructor builds a ticket provider from decrypted configuration.

func LookupProvider

func LookupProvider(name string) (ProviderConstructor, bool)

LookupProvider returns a registered provider constructor by name.

Jump to

Keyboard shortcuts

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