utils

package
v3.7.1 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WalExt            = ".wal"
	CommitLogFileName = "commitlog.id"
)

Variables

This section is empty.

Functions

func GetCerts added in v3.6.0

func GetCerts(caPath, certPath, keyPath string) ([]byte, []byte, []byte, error)

func LoadIncrFiles

func LoadIncrFiles(srcDir string, commitLogId, lastLogId int64) ([]string, error)

LoadIncrFiles load incremental wal file and commitlog.id file

func LoadTLSConfig added in v3.6.0

func LoadTLSConfig(caCert, cert, key []byte) (*tls.Config, error)

func ParseAddr

func ParseAddr(host string) (*nebula.HostAddr, error)

ParseAddr parse "xx.xx.xx.xx:xx" to nebula.HostAddr

func StringifyAddr

func StringifyAddr(addr *nebula.HostAddr) string

func StringifyService

func StringifyService(s *meta.ServiceInfo) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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