proto

package
v0.0.0-...-58886fc Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2021 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_example_example_proto protoreflect.FileDescriptor

Functions

func New

func New(opts *o.Opts) proxy.Listener

func NewProxy

func NewProxy(opts *o.Opts) proxy.Proxy

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) Descriptor() ([]byte, []int)

Deprecated: Use Insert.ProtoReflect.Descriptor instead.

func (*Insert) ProtoMessage

func (*Insert) ProtoMessage()

func (*Insert) ProtoReflect

func (x *Insert) ProtoReflect() protoreflect.Message

func (*Insert) Reset

func (x *Insert) Reset()

func (*Insert) String

func (x *Insert) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Song.ProtoReflect.Descriptor instead.

func (*Song) GetAlbumTitle

func (x *Song) GetAlbumTitle() string

func (*Song) GetArtist

func (x *Song) GetArtist() string

func (*Song) GetSongTitle

func (x *Song) GetSongTitle() string

func (*Song) GetYear

func (x *Song) GetYear() string

func (*Song) ProtoMessage

func (*Song) ProtoMessage()

func (*Song) ProtoReflect

func (x *Song) ProtoReflect() protoreflect.Message

func (*Song) Reset

func (x *Song) Reset()

func (*Song) String

func (x *Song) String() string

type UnimplementedExampleServer

type UnimplementedExampleServer struct {
}

UnimplementedExampleServer can be embedded to have forward compatible implementations.

func (*UnimplementedExampleServer) Insert

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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