netpath

package
v0.1.79 Latest Latest
Warning

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

Go to latest
Published: May 29, 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 InDir

func InDir(sep, path, dir string) bool

func Path

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

func SameDir added in v0.1.36

func SameDir(sep, path, dir string) bool

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) 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) SameBalanceSubdomain added in v0.1.36

func (d NodeDetails) SameBalanceSubdomain(path string) bool

func (NodeDetails) SameBroadcastSubdomain added in v0.1.36

func (d NodeDetails) SameBroadcastSubdomain(path string) bool

func (NodeDetails) SameDomain added in v0.1.36

func (d NodeDetails) SameDomain(path string) bool

func (NodeDetails) SameMulticastSubdomain added in v0.1.36

func (d NodeDetails) SameMulticastSubdomain(path string) bool

func (NodeDetails) SameNodeSubdomain added in v0.1.36

func (d NodeDetails) SameNodeSubdomain(path string) bool

Jump to

Keyboard shortcuts

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