testservice

package
v1.9.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 27, 2021 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthSimple        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowSimple          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupSimple = fmt.Errorf("proto: unexpected end of group")
)

Functions

func RegisterSimpleServer

func RegisterSimpleServer(s *grpc.Server, srv SimpleServer)

Types

type Req

type Req struct {
	Datacenter           string   `protobuf:"bytes,1,opt,name=Datacenter,proto3" json:"Datacenter,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Req) Descriptor

func (*Req) Descriptor() ([]byte, []int)

func (*Req) GetDatacenter

func (m *Req) GetDatacenter() string

func (*Req) Marshal

func (m *Req) Marshal() (dAtA []byte, err error)

func (*Req) MarshalBinary

func (msg *Req) MarshalBinary() ([]byte, error)

MarshalBinary implements encoding.BinaryMarshaler

func (*Req) MarshalTo

func (m *Req) MarshalTo(dAtA []byte) (int, error)

func (*Req) MarshalToSizedBuffer

func (m *Req) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Req) ProtoMessage

func (*Req) ProtoMessage()

func (*Req) Reset

func (m *Req) Reset()

func (*Req) Size

func (m *Req) Size() (n int)

func (*Req) String

func (m *Req) String() string

func (*Req) Unmarshal

func (m *Req) Unmarshal(dAtA []byte) error

func (*Req) UnmarshalBinary

func (msg *Req) UnmarshalBinary(b []byte) error

UnmarshalBinary implements encoding.BinaryUnmarshaler

func (*Req) XXX_DiscardUnknown

func (m *Req) XXX_DiscardUnknown()

func (*Req) XXX_Marshal

func (m *Req) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Req) XXX_Merge

func (m *Req) XXX_Merge(src proto.Message)

func (*Req) XXX_Size

func (m *Req) XXX_Size() int

func (*Req) XXX_Unmarshal

func (m *Req) XXX_Unmarshal(b []byte) error

type Resp

type Resp struct {
	ServerName           string   `protobuf:"bytes,1,opt,name=ServerName,proto3" json:"ServerName,omitempty"`
	Datacenter           string   `protobuf:"bytes,2,opt,name=Datacenter,proto3" json:"Datacenter,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Resp) Descriptor

func (*Resp) Descriptor() ([]byte, []int)

func (*Resp) GetDatacenter

func (m *Resp) GetDatacenter() string

func (*Resp) GetServerName

func (m *Resp) GetServerName() string

func (*Resp) Marshal

func (m *Resp) Marshal() (dAtA []byte, err error)

func (*Resp) MarshalBinary

func (msg *Resp) MarshalBinary() ([]byte, error)

MarshalBinary implements encoding.BinaryMarshaler

func (*Resp) MarshalTo

func (m *Resp) MarshalTo(dAtA []byte) (int, error)

func (*Resp) MarshalToSizedBuffer

func (m *Resp) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Resp) ProtoMessage

func (*Resp) ProtoMessage()

func (*Resp) Reset

func (m *Resp) Reset()

func (*Resp) Size

func (m *Resp) Size() (n int)

func (*Resp) String

func (m *Resp) String() string

func (*Resp) Unmarshal

func (m *Resp) Unmarshal(dAtA []byte) error

func (*Resp) UnmarshalBinary

func (msg *Resp) UnmarshalBinary(b []byte) error

UnmarshalBinary implements encoding.BinaryUnmarshaler

func (*Resp) XXX_DiscardUnknown

func (m *Resp) XXX_DiscardUnknown()

func (*Resp) XXX_Marshal

func (m *Resp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Resp) XXX_Merge

func (m *Resp) XXX_Merge(src proto.Message)

func (*Resp) XXX_Size

func (m *Resp) XXX_Size() int

func (*Resp) XXX_Unmarshal

func (m *Resp) XXX_Unmarshal(b []byte) error

type SimpleClient

type SimpleClient interface {
	Something(ctx context.Context, in *Req, opts ...grpc.CallOption) (*Resp, error)
	Flow(ctx context.Context, in *Req, opts ...grpc.CallOption) (Simple_FlowClient, error)
}

SimpleClient is the client API for Simple service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewSimpleClient

func NewSimpleClient(cc *grpc.ClientConn) SimpleClient

type SimpleServer

type SimpleServer interface {
	Something(context.Context, *Req) (*Resp, error)
	Flow(*Req, Simple_FlowServer) error
}

SimpleServer is the server API for Simple service.

type Simple_FlowClient

type Simple_FlowClient interface {
	Recv() (*Resp, error)
	grpc.ClientStream
}

type Simple_FlowServer

type Simple_FlowServer interface {
	Send(*Resp) error
	grpc.ServerStream
}

type UnimplementedSimpleServer

type UnimplementedSimpleServer struct {
}

UnimplementedSimpleServer can be embedded to have forward compatible implementations.

func (*UnimplementedSimpleServer) Flow

func (*UnimplementedSimpleServer) Something

func (*UnimplementedSimpleServer) Something(ctx context.Context, req *Req) (*Resp, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL