utils

package
v0.9.5 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAwsSecret

func GetAwsSecret[T any](secretName string, region string) (T, error)

Types

type AwsDBSecret

type AwsDBSecret struct {
	DB_HOST     string
	DB_USER     string `json:"username"`
	DB_PASSWORD string `json:"password"`
	DB_BASE     string
}

func GetDefaultDBSecret

func GetDefaultDBSecret() (AwsDBSecret, error)

type AwsSecret

type AwsSecret struct {
	COINBASE_WS_API_KEY        string
	COINBASE_WS_API_SECRET     string
	COINBASE_WS_API_PASSPHRASE string
	SUPABASE_URL               string
	SERVICE_ROLE_KEY           string
}

func GetDefaultCoinbaseSecret

func GetDefaultCoinbaseSecret() (AwsSecret, error)

Jump to

Keyboard shortcuts

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