utils

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppConfig added in v0.1.5

type AppConfig struct {
	AwsRegion     string
	DbEndpoint    string
	DbAwsRegion   string
	DbTableName   string
	DbIndexName   string
	SqsEndpoint   string
	SqsAwsRegion  string
	SqsQueueName  string
	OidcClientId  string
	OidcIssuerUrl string
}

func LoadApiConfig added in v0.1.5

func LoadApiConfig() (*AppConfig, error)

func LoadClientConfig added in v0.1.5

func LoadClientConfig() (*AppConfig, error)

type Error

type Error struct {
	Errors map[string]interface{} `json:"errors"`
}

Error struct

func NewError

func NewError(err error) Error

NewError constructor

func NotFound

func NotFound() Error

NotFound returns an error in case a resource was not found

Jump to

Keyboard shortcuts

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