manager

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

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

Manager 管理多个 provider

func NewManager

func NewManager() *Manager

NewManager 创建一个新的 manager

func (*Manager) Add

func (m *Manager) Add(p provider.Provider)

Add 添加一个 provider

func (*Manager) GetAll

func (m *Manager) GetAll() ([]*provider.Usage, error)

GetAll 获取所有可用 provider 的用量

func (*Manager) GetProviders

func (m *Manager) GetProviders() []string

GetProviders 返回所有已注册的 provider 名称

Jump to

Keyboard shortcuts

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