Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Url string `toml:"url"` Port int `toml:"port"` SocketPath string `toml:"socketPath"` OtherNodeUrls []string `toml:"otherNodeUrls"` PublicKeyPath string `toml:"publicKeyPath"` PrivateKeyPath string `toml:"privateKeyPath"` StoragePath string `toml:"storagePath"` }
func LoadConfig ¶
type Constellation ¶
type Constellation struct {
// contains filtered or unexported fields
}
func MaybeNew ¶
func MaybeNew(configPath string) *Constellation
func MustNew ¶
func MustNew(configPath string) *Constellation
func New ¶
func New(configPath string) (*Constellation, error)
type ReceiveRequest ¶
type ReceiveResponse ¶
type ReceiveResponse struct {
Payload string `json:"payload"`
}
type SendRequest ¶
type SendResponse ¶
type SendResponse struct {
Key string `json:"key"`
}
Click to show internal directories.
Click to hide internal directories.