raw_config_service

package
v0.0.0-...-a1261cd Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackendConfigProvider

type BackendConfigProvider struct {
	AbsPath string
}

func (*BackendConfigProvider) GetConfig

func (p *BackendConfigProvider) GetConfig() (*string, error)

func (*BackendConfigProvider) Name

func (p *BackendConfigProvider) Name() string

func (*BackendConfigProvider) SetConfig

func (p *BackendConfigProvider) SetConfig(data string) error

type ConfigProvider

type ConfigProvider interface {
	Name() string
	GetConfig() (*string, error)
	SetConfig(data string) error
}

type Service

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

func NewService

func NewService(providers ...ConfigProvider) (*Service, error)

func (*Service) GetConfig

func (s *Service) GetConfig(name string) (*string, error)

func (*Service) SetConfig

func (s *Service) SetConfig(name string, data string) error

Jump to

Keyboard shortcuts

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