goturl

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2022 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ProtocolNative is the native got protocol directly over INET256
	ProtocolNative = "got"
	// ProtocolQUIC is the got protocol over QUIC
	ProtocolQUIC = "quic"
	// ProtocolGRPC is the gRPC based protocol in the gotgrpc package
	ProtocolGRPC = "grpc"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type SpaceURL

type SpaceURL struct {
	Protocol    string
	Host        string
	SpacePrefix string
}

URL points to a Got Space

func NewGRPCSpace

func NewGRPCSpace(endpoint string) SpaceURL

func NewNativeSpace

func NewNativeSpace(id gotnet.PeerID) SpaceURL

func NewQUICSpace

func NewQUICSpace(addr quichub.Addr) SpaceURL

func ParseSpaceURL

func ParseSpaceURL(x string) (*SpaceURL, error)

func (SpaceURL) String

func (u SpaceURL) String() string

Jump to

Keyboard shortcuts

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