Documentation ¶
Index ¶
- Variables
- func CheckBindIsOpen(network, bind string, timeout time.Duration) error
- func CopyBytes(b []byte) []byte
- func GenerateChecksum(i io.Reader) (string, error)
- func GenerateFileChecksum(p string) (string, error)
- func IsValidURL(u *url.URL) error
- func NormalizeURL(u *url.URL) *url.URL
- func NormalizeURLString(s string) (*url.URL, error)
- func ParseCombinedNodeURL(u *url.URL) (*url.URL, bool, error)
- func ParseURL(s string, allowEmpty bool) (*url.URL, error)
- type BSONFilter
- type BaseHinter
- type Byter
- type HTTPConnInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var (
HTTPConnInfoHint = hint.MustNewHint("http-conninfo-v0.0.1")
)
Functions ¶
func GenerateFileChecksum ¶
func IsValidURL ¶
func ParseCombinedNodeURL ¶
ParseCombinedNodeURL parses the combined url of node; it contains, - node publish url - tls insecure: "#insecure" "insecure" fragment will be removed.
Types ¶
type BSONFilter ¶
type BSONFilter struct {
// contains filtered or unexported fields
}
func EmptyBSONFilter ¶
func EmptyBSONFilter() *BSONFilter
func NewBSONFilter ¶
func NewBSONFilter(key string, value interface{}) *BSONFilter
func NewBSONFilterFromD ¶
func NewBSONFilterFromD(d bson.D) *BSONFilter
func (*BSONFilter) Add ¶
func (ft *BSONFilter) Add(key string, value interface{}) *BSONFilter
func (*BSONFilter) AddOp ¶
func (ft *BSONFilter) AddOp(key string, value interface{}, op string) *BSONFilter
func (*BSONFilter) D ¶
func (ft *BSONFilter) D() bson.D
type BaseHinter ¶
func NewBaseHinter ¶
func NewBaseHinter(ht hint.Hint) BaseHinter
func (BaseHinter) Bytes ¶
func (ht BaseHinter) Bytes() []byte
func (BaseHinter) Hint ¶
func (ht BaseHinter) Hint() hint.Hint
func (BaseHinter) IsValid ¶
func (ht BaseHinter) IsValid(expectedType []byte) error
type HTTPConnInfo ¶
type HTTPConnInfo struct { hint.BaseHinter // contains filtered or unexported fields }
func NewHTTPConnInfo ¶
func NewHTTPConnInfo(u *url.URL, insecure bool) HTTPConnInfo
func NewHTTPConnInfoFromString ¶
func NewHTTPConnInfoFromString(s string, insecure bool) (HTTPConnInfo, error)
func (HTTPConnInfo) Bytes ¶
func (conn HTTPConnInfo) Bytes() []byte
func (HTTPConnInfo) Insecure ¶
func (conn HTTPConnInfo) Insecure() bool
func (HTTPConnInfo) IsValid ¶
func (conn HTTPConnInfo) IsValid([]byte) error
func (HTTPConnInfo) SetInsecure ¶
func (conn HTTPConnInfo) SetInsecure(i bool) HTTPConnInfo
func (HTTPConnInfo) String ¶
func (conn HTTPConnInfo) String() string
func (HTTPConnInfo) URL ¶
func (conn HTTPConnInfo) URL() *url.URL
Click to show internal directories.
Click to hide internal directories.