Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EnvironmentSource ¶
type EnvironmentSource interface {
ListGatewayEnvironments(ctx context.Context) ([]protocol.Environment, error)
}
type EnvironmentSourceFunc ¶
type EnvironmentSourceFunc func(ctx context.Context) ([]protocol.Environment, error)
func (EnvironmentSourceFunc) ListGatewayEnvironments ¶
func (fn EnvironmentSourceFunc) ListGatewayEnvironments(ctx context.Context) ([]protocol.Environment, error)
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(options ...ServiceOption) *Service
func (*Service) ListEnvironments ¶
func (s *Service) ListEnvironments(ctx context.Context, req protocol.CatalogRequest) (protocol.CatalogResponse, error)
type ServiceOption ¶
type ServiceOption func(*Service)
func WithEnvironmentSource ¶
func WithEnvironmentSource(source EnvironmentSource) ServiceOption
func WithGatewayMetadata ¶
func WithGatewayMetadata(gateway protocol.GatewayMetadata) ServiceOption
Click to show internal directories.
Click to hide internal directories.