local

package
v0.7.5-beta.2 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetJSON added in v0.7.1

func GetJSON(url string) ([]byte, error)

GetJSON makes a GET request to the given URL and returns the response body as bytes

func HomeDir added in v0.7.0

func HomeDir() string

The HomeDir function returns the home directory of the current user.

func PostJSON added in v0.7.1

func PostJSON(url string, body []byte) ([]byte, error)

PostJSON makes a POST request to the given URL and returns the response body as bytes

Types

type BroadcastTxResponse added in v0.6.6

type BroadcastTxResponse = txtypes.BroadcastTxResponse

type LocalContext added in v0.6.6

type LocalContext struct {
	HomeDir        string
	NodeHome       string
	ConfigDirPath  string
	ConfigTomlPath string
}

LocalContext is a struct that holds the current context of the application.

func Context

func Context(opts ...Option) LocalContext

Context returns the current context of the Sonr blockchain application.

type Option added in v0.6.7

type Option func(LocalContext)

Option is a function that configures the local context

Jump to

Keyboard shortcuts

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