tokenstore

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(path, provider string) error

Delete 删除指定 provider 的 token。

func Has

func Has(path, provider string) (bool, error)

Has 检查指定 provider 是否存在 token。

func Load

func Load(path, provider string, out interface{}) error

Load 从统一 token 文件加载指定 provider 的 token 到 out。

func LoadRaw

func LoadRaw(path, provider string) ([]byte, error)

LoadRaw 从统一 token 文件加载指定 provider 的原始 token JSON。

func Save

func Save(path, provider string, token interface{}) error

Save 将指定 provider 的 token 写入统一 token 文件。

func SaveRaw

func SaveRaw(path, provider string, raw []byte) error

SaveRaw 将指定 provider 的原始 token JSON 写入统一 token 文件。

Types

This section is empty.

Jump to

Keyboard shortcuts

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