Documentation ¶
Overview ¶
Package rpctest is a generated protocol buffer package.
It is generated from these files:
go.thethings.network/lorawan-stack/pkg/rpctest/rpctest.proto
It has these top-level messages:
Foo Bar
Index ¶
- Variables
- func RegisterFooBarServer(s *grpc.Server, srv FooBarServer)
- type Bar
- func (*Bar) Descriptor() ([]byte, []int)
- func (this *Bar) Equal(that interface{}) bool
- func (m *Bar) GetMessage() string
- func (m *Bar) Marshal() (dAtA []byte, err error)
- func (m *Bar) MarshalTo(dAtA []byte) (int, error)
- func (*Bar) ProtoMessage()
- func (m *Bar) Reset()
- func (m *Bar) Size() (n int)
- func (m *Bar) String() string
- func (m *Bar) Unmarshal(dAtA []byte) error
- func (this *Bar) VerboseEqual(that interface{}) error
- type Foo
- func (*Foo) Descriptor() ([]byte, []int)
- func (this *Foo) Equal(that interface{}) bool
- func (m *Foo) GetMessage() string
- func (m *Foo) Marshal() (dAtA []byte, err error)
- func (m *Foo) MarshalTo(dAtA []byte) (int, error)
- func (*Foo) ProtoMessage()
- func (m *Foo) Reset()
- func (m *Foo) Size() (n int)
- func (m *Foo) String() string
- func (m *Foo) Unmarshal(dAtA []byte) error
- func (this *Foo) VerboseEqual(that interface{}) error
- type FooBarClient
- type FooBarExampleServer
- func (s *FooBarExampleServer) BidiStream(stream FooBar_BidiStreamServer) error
- func (s *FooBarExampleServer) ClientStream(stream FooBar_ClientStreamServer) error
- func (s *FooBarExampleServer) ServerStream(foo *Foo, stream FooBar_ServerStreamServer) error
- func (s *FooBarExampleServer) Unary(ctx context.Context, foo *Foo) (*Bar, error)
- type FooBarServer
- type FooBar_BidiStreamClient
- type FooBar_BidiStreamServer
- type FooBar_ClientStreamClient
- type FooBar_ClientStreamServer
- type FooBar_ServerStreamClient
- type FooBar_ServerStreamServer
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthRpctest = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowRpctest = fmt.Errorf("proto: integer overflow") )
Functions ¶
func RegisterFooBarServer ¶
func RegisterFooBarServer(s *grpc.Server, srv FooBarServer)
Types ¶
type Bar ¶
type Bar struct {
Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
}
func NewPopulatedBar ¶
func (*Bar) Descriptor ¶
func (*Bar) GetMessage ¶
func (*Bar) ProtoMessage ¶
func (*Bar) ProtoMessage()
func (*Bar) VerboseEqual ¶
type Foo ¶
type Foo struct {
Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
}
func NewPopulatedFoo ¶
func (*Foo) Descriptor ¶
func (*Foo) GetMessage ¶
func (*Foo) ProtoMessage ¶
func (*Foo) ProtoMessage()
func (*Foo) VerboseEqual ¶
type FooBarClient ¶
type FooBarClient interface { Unary(ctx context.Context, in *Foo, opts ...grpc.CallOption) (*Bar, error) ClientStream(ctx context.Context, opts ...grpc.CallOption) (FooBar_ClientStreamClient, error) ServerStream(ctx context.Context, in *Foo, opts ...grpc.CallOption) (FooBar_ServerStreamClient, error) BidiStream(ctx context.Context, opts ...grpc.CallOption) (FooBar_BidiStreamClient, error) }
func NewFooBarClient ¶
func NewFooBarClient(cc *grpc.ClientConn) FooBarClient
type FooBarExampleServer ¶
type FooBarExampleServer struct{}
The FooBarExampleServer is an example/test server
func (*FooBarExampleServer) BidiStream ¶
func (s *FooBarExampleServer) BidiStream(stream FooBar_BidiStreamServer) error
BidiStream RPC example
func (*FooBarExampleServer) ClientStream ¶
func (s *FooBarExampleServer) ClientStream(stream FooBar_ClientStreamServer) error
ClientStream RPC example
func (*FooBarExampleServer) ServerStream ¶
func (s *FooBarExampleServer) ServerStream(foo *Foo, stream FooBar_ServerStreamServer) error
ServerStream RPC example
type FooBarServer ¶
type FooBarServer interface { Unary(context.Context, *Foo) (*Bar, error) ClientStream(FooBar_ClientStreamServer) error ServerStream(*Foo, FooBar_ServerStreamServer) error BidiStream(FooBar_BidiStreamServer) error }
type FooBar_BidiStreamClient ¶
type FooBar_BidiStreamServer ¶
type FooBar_ServerStreamClient ¶
type FooBar_ServerStreamClient interface { Recv() (*Bar, error) grpc.ClientStream }
type FooBar_ServerStreamServer ¶
type FooBar_ServerStreamServer interface { Send(*Bar) error grpc.ServerStream }
Click to show internal directories.
Click to hide internal directories.