gconsul

package
v0.0.0-...-46fca04 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2022 License: MIT, MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchKV

func FetchKV() error

func HasKVChanged

func HasKVChanged() bool

func NotifyHealth

func NotifyHealth(check func() error)

func Setup

func Setup() error

Types

type Consul

type Consul struct {
	Name        string
	RootFolder  string
	HealthTTL   time.Duration
	ConsulAgent *consul.Agent
	ConsulKV    *consul.KV
}

type KVStore

type KVStore struct {
	App struct {
		JWTAccessSecret  string `json:"jwt_access_secret"`
		JWTRefreshSecret string `json:"jwt_refresh_secret"`
		CORS             string `json:"cors"`
	} `json:"app"`
	GoogleOAuth struct {
		SecretID string `json:"secret_id"`
	} `json:"google_oauth"`
	Redis struct{} `json:"redis"`
}

Jump to

Keyboard shortcuts

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