Documentation ¶
Index ¶
- Variables
- func RegisterLDAPLoginServer(s *grpc.Server, srv LDAPLoginServer)
- type AuthReply
- func (*AuthReply) Descriptor() ([]byte, []int)
- func (m *AuthReply) GetStatus() AuthReply_AuthStatus
- func (*AuthReply) ProtoMessage()
- func (m *AuthReply) Reset()
- func (m *AuthReply) String() string
- func (m *AuthReply) XXX_DiscardUnknown()
- func (m *AuthReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AuthReply) XXX_Merge(src proto.Message)
- func (m *AuthReply) XXX_Size() int
- func (m *AuthReply) XXX_Unmarshal(b []byte) error
- type AuthReply_AuthStatus
- type KeyAuthRequest
- func (*KeyAuthRequest) Descriptor() ([]byte, []int)
- func (m *KeyAuthRequest) GetLogin() string
- func (m *KeyAuthRequest) GetPublicKey() []byte
- func (*KeyAuthRequest) ProtoMessage()
- func (m *KeyAuthRequest) Reset()
- func (m *KeyAuthRequest) String() string
- func (m *KeyAuthRequest) XXX_DiscardUnknown()
- func (m *KeyAuthRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *KeyAuthRequest) XXX_Merge(src proto.Message)
- func (m *KeyAuthRequest) XXX_Size() int
- func (m *KeyAuthRequest) XXX_Unmarshal(b []byte) error
- type LDAPLoginClient
- type LDAPLoginServer
- type PasswdAuthRequest
- func (*PasswdAuthRequest) Descriptor() ([]byte, []int)
- func (m *PasswdAuthRequest) GetLogin() string
- func (m *PasswdAuthRequest) GetPassword() string
- func (*PasswdAuthRequest) ProtoMessage()
- func (m *PasswdAuthRequest) Reset()
- func (m *PasswdAuthRequest) String() string
- func (m *PasswdAuthRequest) XXX_DiscardUnknown()
- func (m *PasswdAuthRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PasswdAuthRequest) XXX_Merge(src proto.Message)
- func (m *PasswdAuthRequest) XXX_Size() int
- func (m *PasswdAuthRequest) XXX_Unmarshal(b []byte) error
- type UnimplementedLDAPLoginServer
Constants ¶
This section is empty.
Variables ¶
View Source
var AuthReply_AuthStatus_name = map[int32]string{
0: "SERVER_ERROR",
1: "OK",
2: "FAILED",
}
View Source
var AuthReply_AuthStatus_value = map[string]int32{
"SERVER_ERROR": 0,
"OK": 1,
"FAILED": 2,
}
Functions ¶
func RegisterLDAPLoginServer ¶
func RegisterLDAPLoginServer(s *grpc.Server, srv LDAPLoginServer)
Types ¶
type AuthReply ¶
type AuthReply struct { Status AuthReply_AuthStatus `protobuf:"varint,1,opt,name=status,proto3,enum=AuthReply_AuthStatus" json:"status,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AuthReply) Descriptor ¶
func (*AuthReply) GetStatus ¶
func (m *AuthReply) GetStatus() AuthReply_AuthStatus
func (*AuthReply) ProtoMessage ¶
func (*AuthReply) ProtoMessage()
func (*AuthReply) XXX_DiscardUnknown ¶
func (m *AuthReply) XXX_DiscardUnknown()
func (*AuthReply) XXX_Marshal ¶
func (*AuthReply) XXX_Unmarshal ¶
type AuthReply_AuthStatus ¶
type AuthReply_AuthStatus int32
const ( AuthReply_SERVER_ERROR AuthReply_AuthStatus = 0 AuthReply_OK AuthReply_AuthStatus = 1 AuthReply_FAILED AuthReply_AuthStatus = 2 )
func (AuthReply_AuthStatus) EnumDescriptor ¶
func (AuthReply_AuthStatus) EnumDescriptor() ([]byte, []int)
func (AuthReply_AuthStatus) String ¶
func (x AuthReply_AuthStatus) String() string
type KeyAuthRequest ¶
type KeyAuthRequest struct { Login string `protobuf:"bytes,1,opt,name=login,proto3" json:"login,omitempty"` PublicKey []byte `protobuf:"bytes,2,opt,name=publicKey,proto3" json:"publicKey,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*KeyAuthRequest) Descriptor ¶
func (*KeyAuthRequest) Descriptor() ([]byte, []int)
func (*KeyAuthRequest) GetLogin ¶
func (m *KeyAuthRequest) GetLogin() string
func (*KeyAuthRequest) GetPublicKey ¶
func (m *KeyAuthRequest) GetPublicKey() []byte
func (*KeyAuthRequest) ProtoMessage ¶
func (*KeyAuthRequest) ProtoMessage()
func (*KeyAuthRequest) Reset ¶
func (m *KeyAuthRequest) Reset()
func (*KeyAuthRequest) String ¶
func (m *KeyAuthRequest) String() string
func (*KeyAuthRequest) XXX_DiscardUnknown ¶
func (m *KeyAuthRequest) XXX_DiscardUnknown()
func (*KeyAuthRequest) XXX_Marshal ¶
func (m *KeyAuthRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*KeyAuthRequest) XXX_Merge ¶
func (m *KeyAuthRequest) XXX_Merge(src proto.Message)
func (*KeyAuthRequest) XXX_Size ¶
func (m *KeyAuthRequest) XXX_Size() int
func (*KeyAuthRequest) XXX_Unmarshal ¶
func (m *KeyAuthRequest) XXX_Unmarshal(b []byte) error
type LDAPLoginClient ¶
type LDAPLoginClient interface { AuthPasswd(ctx context.Context, in *PasswdAuthRequest, opts ...grpc.CallOption) (*AuthReply, error) AuthKey(ctx context.Context, in *KeyAuthRequest, opts ...grpc.CallOption) (*AuthReply, error) }
LDAPLoginClient is the client API for LDAPLogin service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewLDAPLoginClient ¶
func NewLDAPLoginClient(cc *grpc.ClientConn) LDAPLoginClient
type LDAPLoginServer ¶
type LDAPLoginServer interface { AuthPasswd(context.Context, *PasswdAuthRequest) (*AuthReply, error) AuthKey(context.Context, *KeyAuthRequest) (*AuthReply, error) }
LDAPLoginServer is the server API for LDAPLogin service.
type PasswdAuthRequest ¶
type PasswdAuthRequest struct { Login string `protobuf:"bytes,1,opt,name=login,proto3" json:"login,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PasswdAuthRequest) Descriptor ¶
func (*PasswdAuthRequest) Descriptor() ([]byte, []int)
func (*PasswdAuthRequest) GetLogin ¶
func (m *PasswdAuthRequest) GetLogin() string
func (*PasswdAuthRequest) GetPassword ¶
func (m *PasswdAuthRequest) GetPassword() string
func (*PasswdAuthRequest) ProtoMessage ¶
func (*PasswdAuthRequest) ProtoMessage()
func (*PasswdAuthRequest) Reset ¶
func (m *PasswdAuthRequest) Reset()
func (*PasswdAuthRequest) String ¶
func (m *PasswdAuthRequest) String() string
func (*PasswdAuthRequest) XXX_DiscardUnknown ¶
func (m *PasswdAuthRequest) XXX_DiscardUnknown()
func (*PasswdAuthRequest) XXX_Marshal ¶
func (m *PasswdAuthRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PasswdAuthRequest) XXX_Merge ¶
func (m *PasswdAuthRequest) XXX_Merge(src proto.Message)
func (*PasswdAuthRequest) XXX_Size ¶
func (m *PasswdAuthRequest) XXX_Size() int
func (*PasswdAuthRequest) XXX_Unmarshal ¶
func (m *PasswdAuthRequest) XXX_Unmarshal(b []byte) error
type UnimplementedLDAPLoginServer ¶
type UnimplementedLDAPLoginServer struct { }
UnimplementedLDAPLoginServer can be embedded to have forward compatible implementations.
func (*UnimplementedLDAPLoginServer) AuthKey ¶
func (*UnimplementedLDAPLoginServer) AuthKey(ctx context.Context, req *KeyAuthRequest) (*AuthReply, error)
func (*UnimplementedLDAPLoginServer) AuthPasswd ¶
func (*UnimplementedLDAPLoginServer) AuthPasswd(ctx context.Context, req *PasswdAuthRequest) (*AuthReply, error)
Click to show internal directories.
Click to hide internal directories.