Help us shape the future of Go! Take the 2026 Go Developer Survey

types

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2025 License: Apache-2.0, MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Duration

type Duration struct {
	time.Duration `validate:"required"`
}

Duration is a wrapper type that parses time duration from text.

func NewDuration

func NewDuration(duration time.Duration) Duration

NewDuration returns Duration wrapper

func (Duration) JSONSchema

func (Duration) JSONSchema() *jsonschema.Schema

JSONSchema returns a custom schema to be used for the JSON Schema generation of this type

func (*Duration) UnmarshalText

func (d *Duration) UnmarshalText(data []byte) error

UnmarshalText unmarshalls time duration from text.

type KeystoreFileConfig

type KeystoreFileConfig struct {
	// Path is the file path for the key store file
	Path string `mapstructure:"Path"`

	// Password is the password to decrypt the key store file
	Password string `mapstructure:"Password"`
}

KeystoreFileConfig has all the information needed to load a private key from a key store file

Jump to

Keyboard shortcuts

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