type mellium.im/sasl.Negotiator
31 uses
mellium.im/sasl (current package)
mechanism.go#L59: Start func(n *Negotiator) (more bool, resp []byte, cache interface{}, err error)
mechanism.go#L60: Next func(n *Negotiator, challenge []byte, data interface{}) (more bool, resp []byte, cache interface{}, err error)
negotiator.go#L44: func NewClient(m Mechanism, opts ...Option) *Negotiator {
negotiator.go#L45: machine := &Negotiator{
negotiator.go#L66: func NewServer(m Mechanism, permissions func(*Negotiator) bool, opts ...Option) *Negotiator {
negotiator.go#L67: machine := &Negotiator{
negotiator.go#L91: type Negotiator struct {
negotiator.go#L95: permissions func(*Negotiator) bool
negotiator.go#L104: func (c *Negotiator) Nonce() []byte {
negotiator.go#L111: func (c *Negotiator) Step(challenge []byte) (more bool, resp []byte, err error) {
negotiator.go#L143: func (c *Negotiator) State() State {
negotiator.go#L149: func (c *Negotiator) Reset() {
negotiator.go#L163: func (c *Negotiator) Credentials() (username, password, identity []byte) {
negotiator.go#L171: func (c *Negotiator) Permissions(opts ...Option) bool {
negotiator.go#L182: func (c *Negotiator) TLSState() *tls.ConnectionState {
negotiator.go#L191: func (c *Negotiator) RemoteMechanisms() []string {
options.go#L12: type Option func(*Negotiator)
options.go#L14: func getOpts(n *Negotiator, o ...Option) {
options.go#L18: n.permissions = func(_ *Negotiator) bool {
options.go#L29: return func(n *Negotiator) {
options.go#L37: return func(n *Negotiator) {
options.go#L46: return func(n *Negotiator) {
options.go#L58: return func(n *Negotiator) {
plain.go#L15: Start: func(m *Negotiator) (more bool, resp []byte, _ interface{}, err error) {
plain.go#L25: Next: func(m *Negotiator, challenge []byte, _ interface{}) (more bool, resp []byte, _ interface{}, err error) {
scram.go#L37: func getGS2Header(name string, n *Negotiator) (gs2Header []byte) {
scram.go#L68: Start: func(m *Negotiator) (bool, []byte, interface{}, error) {
scram.go#L99: Next: func(m *Negotiator, challenge []byte, data interface{}) (more bool, resp []byte, cache interface{}, err error) {
scram.go#L112: func scramClientNext(name string, fn func() hash.Hash, m *Negotiator, challenge []byte, data interface{}) (more bool, resp []byte, cache interface{}, err error) {
github.com/go-pg/pg/v10
messages.go#L396: func readAuthSASLFinal(rd *pool.ReaderContext, client *sasl.Negotiator) error {