storeutil

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2024 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadStoreFiles

func ReadStoreFiles(sourceDir, storeDir string) (map[string][]byte, error)

ReadStoreFiles 读取文件

func StoreInConsul

func StoreInConsul(consulClient *consulapi.Client, sourceDir, storeDir string) error

StoreInConsul 存储文件到consul @param sourceDir 需要存储的文件所在目录;例:/path/to/dir @param storeDir 存储到consul的路径;例:go-micro-saas/general-config

Types

type StoreManager

type StoreManager interface {
	Save(sourceDir, storeDir string) error
}

func NewStoreInConsulHandler

func NewStoreInConsulHandler(consulClient *consulapi.Client) StoreManager

Jump to

Keyboard shortcuts

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