netpath

package
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2024 License: LGPL-2.1 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Base

func Base(sep, path string) string

func Dir

func Dir(sep, path string) string

func Equal added in v0.1.93

func Equal(sep, a, b string) bool

func InDir

func InDir(sep, path, dir string) bool

func Join added in v0.1.93

func Join(sep string, elems ...string) string

func Root added in v0.1.88

func Root(sep, path string) string

func Split

func Split(sep, path string) (dir, file string)

Types

type NodeDetails added in v0.1.36

type NodeDetails struct {
	Domain             string // 主域
	BroadcastSubdomain string // 广播地址子域
	BalanceSubdomain   string // 负载均衡地址子域
	MulticastSubdomain string // 组播地址子域
	NodeSubdomain      string // 单播地址子域
	PathSeparator      string // 地址路径分隔符
}

NodeDetails 节点地址信息

func (NodeDetails) BalanceSubdomainJoin added in v0.1.93

func (d NodeDetails) BalanceSubdomainJoin(elems ...string) string

func (NodeDetails) BroadcastSubdomainJoin added in v0.1.93

func (d NodeDetails) BroadcastSubdomainJoin(elems ...string) string

func (NodeDetails) DomainJoin added in v0.1.93

func (d NodeDetails) DomainJoin(elems ...string) string

func (NodeDetails) EqualBalanceSubdomain added in v0.1.93

func (d NodeDetails) EqualBalanceSubdomain(path string) bool

func (NodeDetails) EqualBroadcastSubdomain added in v0.1.93

func (d NodeDetails) EqualBroadcastSubdomain(path string) bool

func (NodeDetails) EqualDomain added in v0.1.93

func (d NodeDetails) EqualDomain(path string) bool

func (NodeDetails) EqualMulticastSubdomain added in v0.1.93

func (d NodeDetails) EqualMulticastSubdomain(path string) bool

func (NodeDetails) EqualNodeSubdomain added in v0.1.93

func (d NodeDetails) EqualNodeSubdomain(path string) bool

func (NodeDetails) InBalanceSubdomain added in v0.1.36

func (d NodeDetails) InBalanceSubdomain(path string) bool

func (NodeDetails) InBroadcastSubdomain added in v0.1.36

func (d NodeDetails) InBroadcastSubdomain(path string) bool

func (NodeDetails) InDomain added in v0.1.36

func (d NodeDetails) InDomain(path string) bool

func (NodeDetails) InMulticastSubdomain added in v0.1.36

func (d NodeDetails) InMulticastSubdomain(path string) bool

func (NodeDetails) InNodeSubdomain added in v0.1.36

func (d NodeDetails) InNodeSubdomain(path string) bool

func (NodeDetails) MulticastSubdomainJoin added in v0.1.93

func (d NodeDetails) MulticastSubdomainJoin(elems ...string) string

func (NodeDetails) NodeSubdomainJoin added in v0.1.93

func (d NodeDetails) NodeSubdomainJoin(elems ...string) string

Jump to

Keyboard shortcuts

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