Documentation ¶
Index ¶
- Variables
- type CapComment
- type CapDot
- type CapEntry
- type CapKeyValue
- type CapWsp
- type CapsFile
- func (cf *CapsFile) Bool(key string) (v bool, ok bool, err error)
- func (cf *CapsFile) DefaultEncoding() string
- func (cf *CapsFile) ExpiresAfter() time.Duration
- func (cf *CapsFile) Int64(key string) (v int64, ok bool, err error)
- func (cf *CapsFile) PathConfig() (*gopher.PathConfig, error)
- func (cf *CapsFile) ServerInfo() (*gopher.ServerInfo, error)
- func (cf *CapsFile) Software() (name, version string)
- func (cf *CapsFile) String(key string) (s string, ok bool)
- func (cf *CapsFile) Supports(feature gopher.Feature) gopher.FeatureStatus
- func (cf *CapsFile) TLSPort() int
- func (cf *CapsFile) Version() int
- type ParseCapsFlag
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrCapsKeyValueInvalid = errors.New("caps: invalid key=value")
)
Functions ¶
This section is empty.
Types ¶
type CapComment ¶
type CapComment []byte
type CapKeyValue ¶
type CapsFile ¶
func NewCapsFile ¶
func ParseCapsBytes ¶
func ParseCapsBytes(name string, data []byte, flag ParseCapsFlag) (*CapsFile, error)
func (*CapsFile) DefaultEncoding ¶
func (*CapsFile) ExpiresAfter ¶
func (*CapsFile) PathConfig ¶
func (cf *CapsFile) PathConfig() (*gopher.PathConfig, error)
func (*CapsFile) ServerInfo ¶
func (cf *CapsFile) ServerInfo() (*gopher.ServerInfo, error)
type ParseCapsFlag ¶
type ParseCapsFlag int
const ( // Dodgy gopher servers can and do stuff '.\r\n' lines in to the caps file. We allow // it by default, but if this flag is set, we forbid it. CapsForbidDot ParseCapsFlag = 1 << iota )
Click to show internal directories.
Click to hide internal directories.