handler

package
v0.1.18 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Author: Daniel TAN Date: 2021-09-03 12:24:12 LastEditors: Daniel TAN LastEditTime: 2021-10-02 00:24:37 FilePath: /trinity-micro/core/config/handler/env_handler.go Description:

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnvHandler

type EnvHandler struct {
}

EnvHandler env handler

func (*EnvHandler) Exists added in v0.1.2

func (e *EnvHandler) Exists(ctx context.Context, key string) (bool, error)

func (*EnvHandler) Get

func (e *EnvHandler) Get(ctx context.Context, key string) (string, error)

Get value from key

type ViperHandler

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

func NewViperHandler

func NewViperHandler(configPath string) *ViperHandler

func (*ViperHandler) Get

func (v *ViperHandler) Get(key string) string

Get value from key

Jump to

Keyboard shortcuts

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