Documentation ¶
Overview ¶
Package server is a generated protocol buffer package.
It is generated from these files:
fake_server.proto
It has these top-level messages:
FailWithHTTPErrorRequest
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterFakeServerServer ¶
func RegisterFakeServerServer(s *grpc.Server, srv FakeServerServer)
func RegisterInstrumentation ¶
RegisterInstrumentation on the given router.
Types ¶
type Config ¶
type Config struct { MetricsNamespace string HTTPListenPort int GRPCListenPort int RegisterInstrumentation bool ExcludeRequestInLog bool ServerGracefulShutdownTimeout time.Duration HTTPServerReadTimeout time.Duration HTTPServerWriteTimeout time.Duration HTTPServerIdleTimeout time.Duration GRPCOptions []grpc.ServerOption GRPCMiddleware []grpc.UnaryServerInterceptor HTTPMiddleware []middleware.Interface }
Config for a Server
func (*Config) RegisterFlags ¶
RegisterFlags adds the flags required to config this to the given FlagSet
type FailWithHTTPErrorRequest ¶
type FailWithHTTPErrorRequest struct {
Code int32 `protobuf:"varint,1,opt,name=Code" json:"Code,omitempty"`
}
func (*FailWithHTTPErrorRequest) Descriptor ¶
func (*FailWithHTTPErrorRequest) Descriptor() ([]byte, []int)
func (*FailWithHTTPErrorRequest) GetCode ¶
func (m *FailWithHTTPErrorRequest) GetCode() int32
func (*FailWithHTTPErrorRequest) ProtoMessage ¶
func (*FailWithHTTPErrorRequest) ProtoMessage()
func (*FailWithHTTPErrorRequest) Reset ¶
func (m *FailWithHTTPErrorRequest) Reset()
func (*FailWithHTTPErrorRequest) String ¶
func (m *FailWithHTTPErrorRequest) String() string
type FakeServerClient ¶
type FakeServerClient interface { Succeed(ctx context.Context, in *google_protobuf.Empty, opts ...grpc.CallOption) (*google_protobuf.Empty, error) FailWithError(ctx context.Context, in *google_protobuf.Empty, opts ...grpc.CallOption) (*google_protobuf.Empty, error) FailWithHTTPError(ctx context.Context, in *FailWithHTTPErrorRequest, opts ...grpc.CallOption) (*google_protobuf.Empty, error) }
func NewFakeServerClient ¶
func NewFakeServerClient(cc *grpc.ClientConn) FakeServerClient
type FakeServerServer ¶
type FakeServerServer interface { Succeed(context.Context, *google_protobuf.Empty) (*google_protobuf.Empty, error) FailWithError(context.Context, *google_protobuf.Empty) (*google_protobuf.Empty, error) FailWithHTTPError(context.Context, *FailWithHTTPErrorRequest) (*google_protobuf.Empty, error) }
Click to show internal directories.
Click to hide internal directories.