config

package
v0.0.0-...-fd5f2df Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Environment *string `json:"environment,omitempty"`

	PostgresqlStoreConfig *PostgresqlStoreConfig `json:"postgresql,omitempty"`
	FileStoreConfig       *FileStoreConfig       `json:"file,omitempty"`
	KinesisStoreConfig    *KinesisStoreConfig    `json:"kinesis,omitempty"`
}

func Load

func Load() (*Config, error)

type FileStoreConfig

type FileStoreConfig struct {
	BasePath *string `json:"base"`
	FileName *string `json:"filename"`
}

func (*FileStoreConfig) FullPath

func (s *FileStoreConfig) FullPath() (string, error)

type KinesisStoreConfig

type KinesisStoreConfig struct {
	StreamName *string `json:"stream,omitempty"`
}

type PostgresqlStoreConfig

type PostgresqlStoreConfig struct {
	DSN *string `json:"dsn"`
}

Jump to

Keyboard shortcuts

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