Documentation
¶
Index ¶
- Variables
- func New(opts *o.Opts) proxy.Listener
- func NewProxy(opts *o.Opts) proxy.Proxy
- func RegisterExampleServer(s *grpc.Server, srv ExampleServer)
- type ExampleClient
- type ExampleServer
- type Insert
- type Insert_Request
- type Insert_Response
- type Song
- func (*Song) Descriptor() ([]byte, []int)deprecated
- func (x *Song) GetAlbumTitle() string
- func (x *Song) GetArtist() string
- func (x *Song) GetSongTitle() string
- func (x *Song) GetYear() string
- func (*Song) ProtoMessage()
- func (x *Song) ProtoReflect() protoreflect.Message
- func (x *Song) Reset()
- func (x *Song) String() string
- type UnimplementedExampleServer
Constants ¶
This section is empty.
Variables ¶
View Source
var File_example_example_proto protoreflect.FileDescriptor
Functions ¶
func RegisterExampleServer ¶
func RegisterExampleServer(s *grpc.Server, srv ExampleServer)
Types ¶
type ExampleClient ¶
type ExampleClient interface { // Insert ... Insert(ctx context.Context, in *Insert_Request, opts ...grpc.CallOption) (*Insert_Response, error) }
ExampleClient is the client API for Example service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewExampleClient ¶
func NewExampleClient(cc grpc.ClientConnInterface) ExampleClient
type ExampleServer ¶
type ExampleServer interface { // Insert ... Insert(context.Context, *Insert_Request) (*Insert_Response, error) }
ExampleServer is the server API for Example service.
type Insert ¶
type Insert struct {
// contains filtered or unexported fields
}
Insert ...
func (*Insert) Descriptor
deprecated
func (*Insert) ProtoMessage ¶
func (*Insert) ProtoMessage()
func (*Insert) ProtoReflect ¶
func (x *Insert) ProtoReflect() protoreflect.Message
type Insert_Request ¶
type Insert_Request struct { Song *Song `protobuf:"bytes,1,opt,name=song,proto3" json:"song,omitempty"` // contains filtered or unexported fields }
Request ...
func (*Insert_Request) Descriptor
deprecated
func (*Insert_Request) Descriptor() ([]byte, []int)
Deprecated: Use Insert_Request.ProtoReflect.Descriptor instead.
func (*Insert_Request) GetSong ¶
func (x *Insert_Request) GetSong() *Song
func (*Insert_Request) ProtoMessage ¶
func (*Insert_Request) ProtoMessage()
func (*Insert_Request) ProtoReflect ¶
func (x *Insert_Request) ProtoReflect() protoreflect.Message
func (*Insert_Request) Reset ¶
func (x *Insert_Request) Reset()
func (*Insert_Request) String ¶
func (x *Insert_Request) String() string
type Insert_Response ¶
type Insert_Response struct { Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` // contains filtered or unexported fields }
Response ...
func (*Insert_Response) Descriptor
deprecated
func (*Insert_Response) Descriptor() ([]byte, []int)
Deprecated: Use Insert_Response.ProtoReflect.Descriptor instead.
func (*Insert_Response) GetUuid ¶
func (x *Insert_Response) GetUuid() string
func (*Insert_Response) ProtoMessage ¶
func (*Insert_Response) ProtoMessage()
func (*Insert_Response) ProtoReflect ¶
func (x *Insert_Response) ProtoReflect() protoreflect.Message
func (*Insert_Response) Reset ¶
func (x *Insert_Response) Reset()
func (*Insert_Response) String ¶
func (x *Insert_Response) String() string
type Song ¶
type Song struct { // Artist ... Artist string `protobuf:"bytes,1,opt,name=artist,proto3" json:"artist,omitempty"` // SongTitle ... SongTitle string `protobuf:"bytes,2,opt,name=song_title,json=songTitle,proto3" json:"song_title,omitempty"` // AlbumTitle ... AlbumTitle string `protobuf:"bytes,3,opt,name=album_title,json=albumTitle,proto3" json:"album_title,omitempty"` // Year ... Year string `protobuf:"bytes,4,opt,name=year,proto3" json:"year,omitempty"` // contains filtered or unexported fields }
Song ...
func (*Song) Descriptor
deprecated
func (*Song) GetAlbumTitle ¶
func (*Song) GetSongTitle ¶
func (*Song) ProtoMessage ¶
func (*Song) ProtoMessage()
func (*Song) ProtoReflect ¶
func (x *Song) ProtoReflect() protoreflect.Message
type UnimplementedExampleServer ¶
type UnimplementedExampleServer struct { }
UnimplementedExampleServer can be embedded to have forward compatible implementations.
func (*UnimplementedExampleServer) Insert ¶
func (*UnimplementedExampleServer) Insert(context.Context, *Insert_Request) (*Insert_Response, error)
Click to show internal directories.
Click to hide internal directories.