rest

package
v0.0.0-...-a548ab7 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRESTCfgManager

func NewRESTCfgManager(configURL, secret string) *config.CfgManager

NewRESTCfgManager - create REST config manager

Types

type Driver

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

Driver - config store driver based on REST API

func NewRESTDriver

func NewRESTDriver(configRESTURL string, modifiers ...modifier.Modifier) *Driver

NewRESTDriver - Create Driver

func (*Driver) Load

func (h *Driver) Load(_ context.Context) (map[string]interface{}, error)

Load - load config data from REST server

func (*Driver) Save

func (h *Driver) Save(_ context.Context, cfg map[string]interface{}) error

Save - Save config data to REST server by PUT method

type Value

type Value struct {
	Val      interface{} `json:"value"`
	Editable bool        `json:"editable"`
}

Value ...

Jump to

Keyboard shortcuts

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