Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClientWithType ¶
NewSCRAM returns a new SCRAM mech.
func NewServerWithType ¶
NewSCRAM returns a new SCRAM mech.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client represents a SCRAM mech.
func (*Client) SetOptions ¶ added in v1.2.2
SetOptions sets the mechanism options before starting.
type ClientContext ¶
ClientContext represents a SCRAM client context.
func NewClientContext ¶
func NewClientContext(m mech.Mechanism, opts ...scram.ClientOption) (*ClientContext, error)
NewClientContext returns a new SCRAM client context.
func (*ClientContext) Dispose ¶
func (ctx *ClientContext) Dispose() error
Dispose disposes the context.
func (*ClientContext) Done ¶ added in v1.2.0
func (ctx *ClientContext) Done() bool
Done returns true if the context is completed.
func (*ClientContext) Mechanism ¶ added in v1.2.1
func (ctx *ClientContext) Mechanism() mech.Mechanism
Mechanism returns the mechanism.
func (*ClientContext) Step ¶
func (ctx *ClientContext) Step() int
Step returns the current step number. The step number is incremented by one after each call to Next.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server represents a SCRAM mech.
func (*Server) SetOptions ¶ added in v1.2.2
SetOptions sets the mechanism options before starting.
type ServerContext ¶
ServerContext represents a SCRAM server context.
func NewServerContext ¶
func NewServerContext(m mech.Mechanism, opts ...scram.ServerOption) (*ServerContext, error)
NewServerContext returns a new SCRAM server context.
func (*ServerContext) Dispose ¶
func (ctx *ServerContext) Dispose() error
Dispose disposes the context.
func (*ServerContext) Done ¶ added in v1.2.0
func (ctx *ServerContext) Done() bool
Done returns true if the context is completed.
func (*ServerContext) Mechanism ¶ added in v1.2.1
func (ctx *ServerContext) Mechanism() mech.Mechanism
Mechanism returns the mechanism.
func (*ServerContext) Step ¶
func (ctx *ServerContext) Step() int
Step returns the current step number. The step number is incremented by one after each call to Next.