Documentation ¶
Index ¶
- Constants
- Variables
- type Client
- type Mech
- type Options
- type Status
- type TSaslTransport
- func (t *TSaslTransport) Close() error
- func (t *TSaslTransport) Flush(ctx context.Context) error
- func (t *TSaslTransport) IsOpen() bool
- func (t *TSaslTransport) Open() error
- func (t *TSaslTransport) Read(buf []byte) (int, error)
- func (t *TSaslTransport) RemainingBytes() (num_bytes uint64)
- func (t *TSaslTransport) Write(buf []byte) (int, error)
Constants ¶
View Source
const (
MechPlain = "PLAIN"
)
SASL mechanism tokens
Variables ¶
View Source
var ( ErrUnexpectedClientResponse = errors.New("sasl: unexpected client response") ErrUnexpectedServerChallenge = errors.New("sasl: unexpected server challenge") )
Common SASL errors.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { Start(mechlist []string) (mech string, initial []byte, done bool, err error) Step(challenge []byte) (response []byte, done bool, err error) Free() }
Client is SASL client
type TSaslTransport ¶
type TSaslTransport struct {
// contains filtered or unexported fields
}
func NewTSaslTransport ¶
func NewTSaslTransport(t thrift.TTransport, opts *Options) (*TSaslTransport, error)
func (*TSaslTransport) Close ¶
func (t *TSaslTransport) Close() error
func (*TSaslTransport) IsOpen ¶
func (t *TSaslTransport) IsOpen() bool
func (*TSaslTransport) Open ¶
func (t *TSaslTransport) Open() error
func (*TSaslTransport) RemainingBytes ¶
func (t *TSaslTransport) RemainingBytes() (num_bytes uint64)
Click to show internal directories.
Click to hide internal directories.