apollo

package module
v0.0.0-...-3c16d7b Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrEmptyKey   = errors.New("property key is empty")
	ErrMissConfig = errors.New("miss config")
)

Functions

func NewDatasource

func NewDatasource(conf *config.AppConfig, propertyKey string, opts ...Option) (datasource.DataSource, error)

NewDatasource create apollo datasource

Types

type Option

type Option func(o *options)

func WithLogger

func WithLogger(logger log.LoggerInterface) Option

WithLogger set apollo logger

func WithPropertyHandlers

func WithPropertyHandlers(handlers ...datasource.PropertyHandler) Option

WithPropertyHandlers set property handlers

Jump to

Keyboard shortcuts

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