utils

package
v0.0.0-...-7b93ac1 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListenAndServeAPIServer

func ListenAndServeAPIServer(
	ip string,
	port uint)

ListenAndServeAPIServer initializes a server to respond to HTTP network requests on rdsync.

func PathExists

func PathExists(p string) bool

PathExists check if path exists

Types

type APIServer

type APIServer struct {
	*restful.Container
}

APIServer

var (
	APIServerInst *APIServer
)

func NewAPIServer

func NewAPIServer() *APIServer

type NetAddr

type NetAddr struct {
	IP   string
	Port uint16
}

NetAddr <IP, Port>

func (*NetAddr) Set

func (p *NetAddr) Set(s string) error

Set parse <IP>:<Port>

func (*NetAddr) String

func (p *NetAddr) String() string

type NetAddrList

type NetAddrList []NetAddr

NetAddrList []NetAddr

func (*NetAddrList) Set

func (nl *NetAddrList) Set(s string) error

Set parse <netaddr>,<netaddr>

func (*NetAddrList) String

func (nl *NetAddrList) String() string

Jump to

Keyboard shortcuts

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