testutil

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmptyConfig

type EmptyConfig struct {
	Setting         string `mapstructure:"setting"`
	GrpcAddr        string `mapstructure:"grpc_address"`
	HttpAddr        string `mapstructure:"http_address"`
	DBName          string `mapstructure:"database_name"`
	ServicePassword string `mapstructure:"service_password"`
}

func (EmptyConfig) DatabaseName

func (e EmptyConfig) DatabaseName() string

func (EmptyConfig) GRPCAddr

func (e EmptyConfig) GRPCAddr() string

func (EmptyConfig) HTTPAddr

func (e EmptyConfig) HTTPAddr() string

func (EmptyConfig) Validate

func (e EmptyConfig) Validate() error

type InvalidConfig

type InvalidConfig struct {
	GrpcAddr string `mapstructure:"grpc_address"`
	DBName   string `mapstructure:"database_name"`
}

func (InvalidConfig) GRPCAddr

func (i InvalidConfig) GRPCAddr() string

func (InvalidConfig) Validate

func (i InvalidConfig) Validate() error

Jump to

Keyboard shortcuts

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