Documentation ¶
Index ¶
- func DefaultMatchPattern() *regexp.Regexp
- func NewGeneratedString() cgi.SignedStringInterface
- func NewPartiallyGeneratedString(begin, end string) cgi.SignedStringInterface
- type MatchResult
- type SignedString
- func (s *SignedString) DocBlock(comment string) string
- func (s *SignedString) HasValidSignature(value string) (bool, error)
- func (s *SignedString) IsSigned(value string) (bool, error)
- func (s *SignedString) Pattern() *regexp.Regexp
- func (s *SignedString) SignString(value string) (string, error)
- func (s *SignedString) SigningToken() string
- func (s *SignedString) SigningType() cge.SigningType
- func (s *SignedString) TokenName() string
- func (s *SignedString) Verify(maybe_signed string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultMatchPattern ¶
func NewGeneratedString ¶
func NewGeneratedString() cgi.SignedStringInterface
func NewPartiallyGeneratedString ¶
func NewPartiallyGeneratedString(begin, end string) cgi.SignedStringInterface
Types ¶
type MatchResult ¶
type MatchResult struct {
// contains filtered or unexported fields
}
type SignedString ¶
type SignedString struct {
// contains filtered or unexported fields
}
func New ¶
func New(tokenName, docMessage string) *SignedString
func (*SignedString) DocBlock ¶
func (s *SignedString) DocBlock(comment string) string
func (*SignedString) HasValidSignature ¶
func (s *SignedString) HasValidSignature(value string) (bool, error)
func (*SignedString) Pattern ¶
func (s *SignedString) Pattern() *regexp.Regexp
func (*SignedString) SignString ¶
func (s *SignedString) SignString(value string) (string, error)
func (*SignedString) SigningToken ¶
func (s *SignedString) SigningToken() string
func (*SignedString) SigningType ¶
func (s *SignedString) SigningType() cge.SigningType
func (*SignedString) TokenName ¶
func (s *SignedString) TokenName() string
Click to show internal directories.
Click to hide internal directories.