local

package
v0.6.3-beta.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2023 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Standard ports for the sonr grpc and rpc api endpoints.
	SonrGrpcPort = ":9090"
	SonrRpcPort  = ":26657"

	// Prefix for the rpc endpoint.
	SonrRpcPrefix = "tcp://"

	// CurrentChainID is the current chain ID.
	CurrentChainID = "sonrdevnet-1"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	TlsCertPath            string
	TlsKeyPath             string
	GlobalKvKsStore        string
	GlobalInboxDocsStore   string
	GlobalInboxEventsStore string
	HighwayMode            string
	HomeDir                string
	NodeHome               string
	IPFSRepoPath           string
	Rendevouz              string
	BsMultiaddrs           []string
	// contains filtered or unexported fields
}

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

func NewContext

func NewContext() Context

func (Context) GrpcEndpoint

func (c Context) GrpcEndpoint() string

func (Context) HasTlsCert

func (c Context) HasTlsCert() bool

func (Context) HighwayPort

func (c Context) HighwayPort() string

func (Context) IsDev

func (c Context) IsDev() bool

func (Context) IsHighwayConnect

func (c Context) IsHighwayConnect() bool

func (Context) IsHighwayFiber

func (c Context) IsHighwayFiber() bool

func (Context) IsProd

func (c Context) IsProd() bool

func (Context) RpcEndpoint

func (c Context) RpcEndpoint() string

Jump to

Keyboard shortcuts

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