app

package
v0.0.0-...-36ee774 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Node = &node{
	StartTime: time.Now(),
}

Functions

func LoseLeader

func LoseLeader(leader raft.LeaderObservation)

func NewLeader

func NewLeader(leader raft.LeaderObservation)

func ParseAddr

func ParseAddr(ad string) *message.Server

func RaftAddr2Addr

func RaftAddr2Addr(raftAddr string) *message.Server

Types

type Config

type Config struct {
	Addr   string `json:"addr"`
	Http   string `json:"http"`
	Tcp    string `json:"tcp"`
	Raft   string `json:"raft"`
	Secret string `json:"secret"`
	Dir    string `json:"dir"`
}

Jump to

Keyboard shortcuts

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