services

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2025 License: ISC Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const SERVICE_ENDPOINT = "https://api.plakar.io"

Variables

This section is empty.

Functions

This section is empty.

Types

type ServiceConnector

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

func NewServiceConnector

func NewServiceConnector(ctx *appcontext.AppContext, authToken string) *ServiceConnector

func (*ServiceConnector) GetServiceConfiguration

func (sc *ServiceConnector) GetServiceConfiguration(name string) (map[string]string, error)

func (*ServiceConnector) GetServiceList added in v1.0.3

func (sc *ServiceConnector) GetServiceList() ([]ServiceDescription, error)

func (*ServiceConnector) GetServiceStatus

func (sc *ServiceConnector) GetServiceStatus(name string) (bool, error)

func (*ServiceConnector) SetServiceConfiguration

func (sc *ServiceConnector) SetServiceConfiguration(name string, configuration map[string]string) error

func (*ServiceConnector) SetServiceStatus

func (sc *ServiceConnector) SetServiceStatus(name string, enabled bool) error

func (*ServiceConnector) ValidateServiceConfiguration added in v1.0.3

func (sc *ServiceConnector) ValidateServiceConfiguration(name string, config any) error

type ServiceDescription added in v1.0.3

type ServiceDescription struct {
	Name         string         `json:"name"`
	DisplayName  string         `json:"display_name"`
	ConfigSchema map[string]any `json:"config_schema"`
}

func (*ServiceDescription) ValidateConfig added in v1.0.3

func (sd *ServiceDescription) ValidateConfig(value any) error

Jump to

Keyboard shortcuts

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