Documentation ¶
Overview ¶
Package url provides facilities for parsing and formatting Mutagen's URL formats.
Index ¶
- Variables
- type Protocol
- type URL
- func (*URL) Descriptor() ([]byte, []int)
- func (u *URL) EnsureValid() error
- func (u *URL) Format() string
- func (m *URL) GetHostname() string
- func (m *URL) GetPath() string
- func (m *URL) GetPort() uint32
- func (m *URL) GetProtocol() Protocol
- func (m *URL) GetUsername() string
- func (*URL) ProtoMessage()
- func (m *URL) Reset()
- func (m *URL) String() string
- func (m *URL) XXX_DiscardUnknown()
- func (m *URL) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *URL) XXX_Merge(src proto.Message)
- func (m *URL) XXX_Size() int
- func (m *URL) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var Protocol_name = map[int32]string{
0: "Local",
1: "SSH",
}
View Source
var Protocol_value = map[string]int32{
"Local": 0,
"SSH": 1,
}
Functions ¶
This section is empty.
Types ¶
type URL ¶
type URL struct { Protocol Protocol `protobuf:"varint,1,opt,name=protocol,proto3,enum=url.Protocol" json:"protocol,omitempty"` Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` Hostname string `protobuf:"bytes,3,opt,name=hostname,proto3" json:"hostname,omitempty"` Port uint32 `protobuf:"varint,4,opt,name=port,proto3" json:"port,omitempty"` Path string `protobuf:"bytes,5,opt,name=path,proto3" json:"path,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*URL) Descriptor ¶
func (*URL) EnsureValid ¶
EnsureValid ensures that URL's invariants are respected.
func (*URL) GetHostname ¶
func (*URL) GetProtocol ¶
func (*URL) GetUsername ¶
func (*URL) ProtoMessage ¶
func (*URL) ProtoMessage()
func (*URL) XXX_DiscardUnknown ¶
func (m *URL) XXX_DiscardUnknown()
func (*URL) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.