uri

package
v0.0.0-...-d2861cf Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2018 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mode

type Mode int

Mode defines the connection mode to a resource.

const (
	ConnKeep Mode = iota
	ConnOnce
	ConnPush
	ConnPull
)

Connection mode constants.

type SpaceURI

type SpaceURI struct {
	// contains filtered or unexported fields
}

SpaceURI is a structure for containing information about a resource location.

func NewSpaceURI

func NewSpaceURI(rawurl string) (su *SpaceURI, e error)

NewSpaceURI creates a new URI location to a resource. NewSpaceURI follows a restricted URI scheme defined by pSpace specification.

func (*SpaceURI) Hostname

func (su *SpaceURI) Hostname() (hostname string)

Hostname returns the hostname contained in the URI.

func (*SpaceURI) Mode

func (su *SpaceURI) Mode() (mode string)

Mode returns the connection mode contained in the URI.

func (*SpaceURI) Path

func (su *SpaceURI) Path() (path string)

Path returns the path contained in the URI.

func (*SpaceURI) Port

func (su *SpaceURI) Port() (port string)

Port returns the port contained in the URI.

func (*SpaceURI) Scheme

func (su *SpaceURI) Scheme() (hostname string)

Scheme returns the scheme contained in the URI.

func (*SpaceURI) Space

func (su *SpaceURI) Space() (hostname string)

Space returns the space name contained in the URI.

func (SpaceURI) String

func (su SpaceURI) String() (str string)

String returns a print friendly representation of the URI.

Jump to

Keyboard shortcuts

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