library

package
v0.1.927 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2026 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	contract.LibraryOperator
}

func NewClient

func NewClient(opts ClientOptions) (Client, error)

type ClientOption

type ClientOption = contract.Opt[ClientOptions]

func WithHeaderKeyUserID added in v0.1.434

func WithHeaderKeyUserID(x string) ClientOption

func WithLoaded added in v0.1.434

func WithLoaded(x Loaded) ClientOption

func WithSvc

func WithSvc(x string) ClientOption

type ClientOptions

type ClientOptions struct {
	Loaded
	Svc string
}

func ApplyClientOptions

func ApplyClientOptions(opts *ClientOptions, modifiers ...ClientOption) ClientOptions

type DefaultTool

type DefaultTool struct {
	T *contract.Tool[Client]
}

func NewTool

func NewTool(c Client, opts contract.ToolOptions[Client]) *DefaultTool

func (*DefaultTool) HeaderKeyUserID added in v0.1.434

func (d *DefaultTool) HeaderKeyUserID(ctx context.Context) (string, error)

func (*DefaultTool) Svc

func (d *DefaultTool) Svc(ctx context.Context) (string, error)

Svc returns the name of the service.

type Loaded added in v0.1.434

type Loaded struct {
	HeaderKeyUserID string
}

type Tool added in v0.1.245

type Tool interface {
	Client
}

Jump to

Keyboard shortcuts

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