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

loader

package
v0.1.58 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Service)

Option represents a configuration option for the agent service

func WithMetaService

func WithMetaService(metaService *meta.Service) Option

WithMetaService sets the meta service for the agent service

type Service

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

Service provides agent data access operations

func New

func New(opts ...Option) *Service

New creates a new agent service instance

func (*Service) Add

func (s *Service) Add(name string, agent *agentmdl.Agent)

Add adds an agent to the service

func (*Service) List

func (s *Service) List() []*agentmdl.Agent

func (*Service) Load

func (s *Service) Load(ctx context.Context, nameOrLocation string) (*agentmdl.Agent, error)

Load loads an agent from the specified URL

func (*Service) LoadAgents

func (s *Service) LoadAgents(ctx context.Context, URL string) ([]*agentmdl.Agent, error)

LoadAgents loads an agents from the specified URL

func (*Service) Lookup

func (s *Service) Lookup(ctx context.Context, name string) (*agentmdl.Agent, error)

Lookup looks up an agent by name

Jump to

Keyboard shortcuts

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