Documentation
¶
Index ¶
- Constants
- Variables
- type CBFlag
- type Header
- func (header *Header) AuthzID() string
- func (header *Header) CBFlag() CBFlag
- func (header *Header) CBName() string
- func (header *Header) Equals(other *Header) bool
- func (header *Header) HasStdFlag() bool
- func (header *Header) NonStdFlag() bool
- func (header *Header) ParseString(str string) error
- func (header *Header) ParseStrings(props []string) error
- func (header *Header) SetAuthzID(authzID string)
- func (header *Header) SetCBFlag(flag CBFlag)
- func (header *Header) SetCBFlagWithName(flag CBFlag, name string)
- func (header *Header) String() string
Constants ¶
View Source
const ( ClientSupportsUsedCBSFlag = CBFlag('p') ClientDoesNotSupportCBSFlag = CBFlag('n') ClientSupportsCBSFlag = CBFlag('y') )
View Source
const ( GS2PropertyMaxCount = 3 GS2NonStdFlag = "F" GS2AuthzidPrefix = "a=" )
Variables ¶
View Source
var ErrInvalidHeader = errors.New("invalid header")
ErrInvalidHeader is returned when the header is invalid.
Functions ¶
This section is empty.
Types ¶
type CBFlag ¶
type CBFlag rune
CBFlag represents a channel binding flag.
type Header ¶
type Header struct {
// contains filtered or unexported fields
}
Header represents a GS2 header.
func NewHeaderFromString ¶
NewHeaderFromString creates a new header from the string.
func NewHeaderFromStrings ¶
NewHeaderFromString creates a new header from the property strings.
func (*Header) HasStdFlag ¶
HasStdFlag returns true if the header has a standard flag.
func (*Header) NonStdFlag ¶
NonStdFlag returns true if the header has a non-standard flag.
func (*Header) ParseString ¶
ParseString parses the header string.
func (*Header) ParseStrings ¶
ParseStrings parses the header property strings.
func (*Header) SetAuthzID ¶
SetAuthzID sets the authorization identity.
func (*Header) SetCBFlagWithName ¶
SetCBFlagWithName sets the channel binding flag with the name.
Click to show internal directories.
Click to hide internal directories.