Help us shape the future of Go! Take the 2026 Go Developer Survey

messagepreset

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrConflict   = repository.ErrMessagePresetConflict
	ErrNotFound   = errors.New("message preset workspace not found")
	ErrValidation = errors.New("invalid message preset configuration")
)

Functions

This section is empty.

Types

type Service

type Service interface {
	GetGlobal() (*model.MessagePresetScopeResponse, error)
	GetWorkspace(workspaceID string) (*model.MessagePresetScopeResponse, error)
	GetEffective(workspaceID string) (*model.EffectiveMessagePresetsResponse, error)
	SaveGlobal(req model.SaveMessagePresetScopeRequest) (*model.MessagePresetScopeResponse, error)
	SaveWorkspace(workspaceID string, req model.SaveMessagePresetScopeRequest) (*model.MessagePresetScopeResponse, error)
	ListOrphans() (*model.ListOrphanMessagePresetsResponse, error)
	DeleteOrphan(workspaceID, revision string) error
	RebindOrphan(sourceWorkspaceID string, req model.RebindMessagePresetRequest) error
}

func NewService

func NewService(workspaces workspaceLookup) (Service, error)

Jump to

Keyboard shortcuts

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