apollo

package module
v0.0.0-...-b8d94d1 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 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