f

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: BSD-3-Clause, MIT Imports: 3 Imported by: 0

Documentation

Overview

Package f provides simple test fixtures for uconfig.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Anon

type Anon struct {
	Version string
}

Anon is part of text fixtures.

type Config

type Config struct {
	Anon
	GoHard  bool
	Redis   Redis
	Rethink RethinkConfig
}

Config is part of text fixtures.

type Host

type Host struct {
	Address string
	Port    string
}

Host is part of text fixtures.

type Redis

type Redis struct {
	Host string
	Port int
}

Redis is part of text fixtures.

type RethinkConfig

type RethinkConfig struct {
	Host     Host
	DB       string `default:"primary" usage:"main database used by our application"`
	Password string `secret:""`
}

RethinkConfig is part of text fixtures.

type TextUnmarshalerStringSlice

type TextUnmarshalerStringSlice []string

TextUnmarshalerStringSlice is an example of encoding.TextUnmarshaler

func (*TextUnmarshalerStringSlice) UnmarshalText

func (l *TextUnmarshalerStringSlice) UnmarshalText(value []byte) error

UnmarshalText is part of encoding.TextUnmarshaler

type Types

type Types struct {
	String   string
	Bool     bool
	Duration time.Duration
	Int      int
	Int8     int8
	Int16    int16
	Int32    int32
	Int64    int64
	Uint     uint
	Uint8    uint8
	Uint16   uint16
	Uint32   uint32
	Uint64   uint64
	Float32  float32
	Float64  float64

	SliceString   []string
	SliceInt      []int
	SliceInt32    []int
	SliceUint     []uint
	SliceFloat32  []float32
	SliceDuration []time.Duration

	SliceTextUnmarshaler *TextUnmarshalerStringSlice
}

Jump to

Keyboard shortcuts

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