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

core

package
v2.4.4 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const Name = "file"

Variables

This section is empty.

Functions

This section is empty.

Types

type Source

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

func NewSource

func NewSource(path string, mode config.Mode) *Source

func (*Source) Close

func (s *Source) Close() error

func (*Source) Load

func (s *Source) Load(ctx context.Context, file ...string) ([]*config.Configuration, error)

Load 加载配置

func (*Source) Name

func (s *Source) Name() string

Name 配置源名称

func (*Source) Store

func (s *Source) Store(ctx context.Context, file string, content []byte) error

Store 保存配置项

func (*Source) Watch

func (s *Source) Watch(ctx context.Context) (config.Watcher, error)

Watch 监听配置变化

Jump to

Keyboard shortcuts

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