coredogwatcher

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ControllerPort = "8443"
	ControllerHost = "localhost"
)
View Source
const (
	COREFILE_DIR = "/corefile"
)

Variables

View Source
var (
	DEFAULT_CFG_PATH = "/etc/config/watcher.yaml"
)

Functions

func NewCoreFileServiceClient

func NewCoreFileServiceClient() (pb.CoreFileServiceClient, *grpc.ClientConn)

func WatchCorefile

func WatchCorefile()

Types

type Config

type Config struct {
	StorageConfig struct {
		Enabled bool `yaml:"enabled" env-default:"true"`
		// default storage protocol: s3
		Protocol          string `yaml:"protocol" env-default:"s3s"`
		S3AccessKeyID     string `yaml:"s3AccesskeyID"`
		S3SecretAccessKey string `yaml:"s3SecretAccessKey"`
		S3Region          string `yaml:"s3Region"`
		S3Bucket          string `yaml:"S3Bucket"`
		S3Endpoint        string `yaml:"S3Endpoint"`
		StoreDir          string `yaml:"StoreDir"`
		// presigned url expire time(by seconds)
		PresignedURLExpireSeconds int  `yaml:"PresignedURLExpireSeconds"`
		DeleteLocalCorefile       bool `yaml:"deleteLocalCorefile"`
	} `yaml:"StorageConfig"`
	Gc     bool   `yaml:"gc" env-default:"false"`
	GcType string `yaml:"gc_type" env-default:"rm"`
}

Jump to

Keyboard shortcuts

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