remote

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package remote @Title viper的远程配置 @Description 用于读取远程配置 @Author yr 2024/12/2 @Update yr 2024/12/2

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	viper.RemoteProvider

	Endpoints []string
	Username  string
	Password  string
	// contains filtered or unexported fields
}

func (*Config) Get

func (c *Config) Get(rp viper.RemoteProvider) (io.Reader, error)

func (*Config) Watch

func (c *Config) Watch(rp viper.RemoteProvider) (io.Reader, error)

func (*Config) WatchChannel

func (c *Config) WatchChannel(rp viper.RemoteProvider) (<-chan *viper.RemoteResponse, chan bool)

Jump to

Keyboard shortcuts

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