File: property.go

package info (click to toggle)
coyim 0.3.7-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 4,064 kB
  • ctags: 4,528
  • sloc: xml: 5,120; sh: 328; python: 286; makefile: 235; ruby: 51
file content (29 lines) | stat: -rw-r--r-- 547 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package sasl

import "fmt"

// Property represents a SASL mechanism property
type Property int

// All SASL mechanism properties, as defined by GSASL
const (
	AuthID Property = iota
	Password
	AuthZID
	Realm
	Service
	QOP
	ClientNonce
)

// Properties represents a map of property and value
type Properties map[Property]string

// PropertyMissingError represents an error due a missing property
type PropertyMissingError struct {
	Property
}

func (e PropertyMissingError) Error() string {
	return fmt.Sprintf("missing property %q", e.Property)
}