integration

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Snippet added in v0.3.0

func Snippet(host, slug, taskID string) string

Types

type Adapter added in v0.3.0

type Adapter interface {
	Name() string
	Install() InstallRecord
	Snippet(slug, taskID string) string
}

type InstallRecord added in v0.3.0

type InstallRecord struct {
	Host  string `json:"host"`
	Owner string `json:"owner"`
}

type Registry

type Registry struct {
	// contains filtered or unexported fields
}

func NewRegistry

func NewRegistry(adapters ...Adapter) Registry

func (Registry) Snippet added in v0.3.0

func (r Registry) Snippet(host, slug, taskID string) string

type StaticAdapter added in v0.3.0

type StaticAdapter struct {
	Host string
}

func (StaticAdapter) Install added in v0.3.0

func (a StaticAdapter) Install() InstallRecord

func (StaticAdapter) Name added in v0.3.0

func (a StaticAdapter) Name() string

func (StaticAdapter) Snippet added in v0.3.0

func (a StaticAdapter) Snippet(slug, taskID string) string

Jump to

Keyboard shortcuts

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