Documentation ¶
Overview ¶
Package auth is a generated protocol buffer package.
It is generated from these files:
auth.proto
It has these top-level messages:
CredentialsRequest CredentialsResponse
Index ¶
- Variables
- func CredentialsFunc(ctx context.Context, c session.Caller) func(string) (string, string, error)
- func RegisterAuthServer(s *grpc.Server, srv AuthServer)
- type AuthClient
- type AuthServer
- type CredentialsRequest
- func (*CredentialsRequest) Descriptor() ([]byte, []int)
- func (this *CredentialsRequest) Equal(that interface{}) bool
- func (m *CredentialsRequest) GetHost() string
- func (this *CredentialsRequest) GoString() string
- func (m *CredentialsRequest) Marshal() (dAtA []byte, err error)
- func (m *CredentialsRequest) MarshalTo(dAtA []byte) (int, error)
- func (*CredentialsRequest) ProtoMessage()
- func (m *CredentialsRequest) Reset()
- func (m *CredentialsRequest) Size() (n int)
- func (this *CredentialsRequest) String() string
- func (m *CredentialsRequest) Unmarshal(dAtA []byte) error
- type CredentialsResponse
- func (*CredentialsResponse) Descriptor() ([]byte, []int)
- func (this *CredentialsResponse) Equal(that interface{}) bool
- func (m *CredentialsResponse) GetSecret() string
- func (m *CredentialsResponse) GetUsername() string
- func (this *CredentialsResponse) GoString() string
- func (m *CredentialsResponse) Marshal() (dAtA []byte, err error)
- func (m *CredentialsResponse) MarshalTo(dAtA []byte) (int, error)
- func (*CredentialsResponse) ProtoMessage()
- func (m *CredentialsResponse) Reset()
- func (m *CredentialsResponse) Size() (n int)
- func (this *CredentialsResponse) String() string
- func (m *CredentialsResponse) Unmarshal(dAtA []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthAuth = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowAuth = fmt.Errorf("proto: integer overflow") )
Functions ¶
func CredentialsFunc ¶
func RegisterAuthServer ¶
func RegisterAuthServer(s *grpc.Server, srv AuthServer)
Types ¶
type AuthClient ¶
type AuthClient interface {
Credentials(ctx context.Context, in *CredentialsRequest, opts ...grpc.CallOption) (*CredentialsResponse, error)
}
func NewAuthClient ¶
func NewAuthClient(cc *grpc.ClientConn) AuthClient
type AuthServer ¶
type AuthServer interface {
Credentials(context.Context, *CredentialsRequest) (*CredentialsResponse, error)
}
type CredentialsRequest ¶
type CredentialsRequest struct {
Host string `protobuf:"bytes,1,opt,name=Host,proto3" json:"Host,omitempty"`
}
func (*CredentialsRequest) Descriptor ¶
func (*CredentialsRequest) Descriptor() ([]byte, []int)
func (*CredentialsRequest) Equal ¶
func (this *CredentialsRequest) Equal(that interface{}) bool
func (*CredentialsRequest) GetHost ¶
func (m *CredentialsRequest) GetHost() string
func (*CredentialsRequest) GoString ¶
func (this *CredentialsRequest) GoString() string
func (*CredentialsRequest) Marshal ¶
func (m *CredentialsRequest) Marshal() (dAtA []byte, err error)
func (*CredentialsRequest) MarshalTo ¶
func (m *CredentialsRequest) MarshalTo(dAtA []byte) (int, error)
func (*CredentialsRequest) ProtoMessage ¶
func (*CredentialsRequest) ProtoMessage()
func (*CredentialsRequest) Reset ¶
func (m *CredentialsRequest) Reset()
func (*CredentialsRequest) Size ¶
func (m *CredentialsRequest) Size() (n int)
func (*CredentialsRequest) String ¶
func (this *CredentialsRequest) String() string
func (*CredentialsRequest) Unmarshal ¶
func (m *CredentialsRequest) Unmarshal(dAtA []byte) error
type CredentialsResponse ¶
type CredentialsResponse struct { Username string `protobuf:"bytes,1,opt,name=Username,proto3" json:"Username,omitempty"` Secret string `protobuf:"bytes,2,opt,name=Secret,proto3" json:"Secret,omitempty"` }
func (*CredentialsResponse) Descriptor ¶
func (*CredentialsResponse) Descriptor() ([]byte, []int)
func (*CredentialsResponse) Equal ¶
func (this *CredentialsResponse) Equal(that interface{}) bool
func (*CredentialsResponse) GetSecret ¶
func (m *CredentialsResponse) GetSecret() string
func (*CredentialsResponse) GetUsername ¶
func (m *CredentialsResponse) GetUsername() string
func (*CredentialsResponse) GoString ¶
func (this *CredentialsResponse) GoString() string
func (*CredentialsResponse) Marshal ¶
func (m *CredentialsResponse) Marshal() (dAtA []byte, err error)
func (*CredentialsResponse) MarshalTo ¶
func (m *CredentialsResponse) MarshalTo(dAtA []byte) (int, error)
func (*CredentialsResponse) ProtoMessage ¶
func (*CredentialsResponse) ProtoMessage()
func (*CredentialsResponse) Reset ¶
func (m *CredentialsResponse) Reset()
func (*CredentialsResponse) Size ¶
func (m *CredentialsResponse) Size() (n int)
func (*CredentialsResponse) String ¶
func (this *CredentialsResponse) String() string
func (*CredentialsResponse) Unmarshal ¶
func (m *CredentialsResponse) Unmarshal(dAtA []byte) error
Click to show internal directories.
Click to hide internal directories.