Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrMutualAuthParamsAreNotEnough = errors.New("cert and certkey are required to authenticate mutually")
Functions ¶
This section is empty.
Types ¶
type BidiStream ¶
type ClientStream ¶
type Field ¶
type Field interface {
FieldName() string
FQRN() string
Type() FieldType
IsRepeated() bool
// *desc.FieldDescriptor.GetType().String()
// used only from port.Showable
PBType() string
}
Field represents base field features. fieldable types:
enum, oneof, message, primitive
type GRPCClient ¶
type GRPCClient interface {
Invoke(ctx context.Context, fqrn string, req, res interface{}) error
NewClientStream(ctx context.Context, rpc RPC) (ClientStream, error)
NewServerStream(ctx context.Context, rpc RPC) (ServerStream, error)
NewBidiStream(ctx context.Context, rpc RPC) (BidiStream, error)
Close(ctx context.Context) error
GRPCReflectionClient
}
type GRPCReflectionClient ¶
type MessageField ¶
type OneOfField ¶
type PrimitiveField ¶
type PrimitiveField interface {
Field
}
type RPC ¶
type RPC interface {
Name() string
FQRN() string
RequestMessage() Message
ResponseMessage() Message
IsServerStreaming() bool
IsClientStreaming() bool
// StreamDesc returns *grpc.StreamDesc.
// if both of IsServerStreaming and IsClientStreaming are nil,
// StreamDesc will panic.
StreamDesc() *grpc.StreamDesc
}
type ServerStream ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.