proto

package
v0.0.0-...-e707be4 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AddService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "proto.AddService",
	HandlerType: (*AddServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetMockUserData",
			Handler:    _AddService_GetMockUserData_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "proto/mockdata.proto",
}

AddService_ServiceDesc is the grpc.ServiceDesc for AddService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_proto_mockdata_proto protoreflect.FileDescriptor

Functions

func RegisterAddServiceServer

func RegisterAddServiceServer(s grpc.ServiceRegistrar, srv AddServiceServer)

Types

type AddServiceClient

type AddServiceClient interface {
	GetMockUserData(ctx context.Context, in *SearchQuery, opts ...grpc.CallOption) (*User, error)
}

AddServiceClient is the client API for AddService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewAddServiceClient

func NewAddServiceClient(cc grpc.ClientConnInterface) AddServiceClient

type AddServiceServer

type AddServiceServer interface {
	GetMockUserData(context.Context, *SearchQuery) (*User, error)
	// contains filtered or unexported methods
}

AddServiceServer is the server API for AddService service. All implementations must embed UnimplementedAddServiceServer for forward compatibility

type SearchQuery

type SearchQuery struct {
	Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"`
	// contains filtered or unexported fields
}

func (*SearchQuery) Descriptor deprecated

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

Deprecated: Use SearchQuery.ProtoReflect.Descriptor instead.

func (*SearchQuery) GetQuery

func (x *SearchQuery) GetQuery() string

func (*SearchQuery) ProtoMessage

func (*SearchQuery) ProtoMessage()

func (*SearchQuery) ProtoReflect

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

func (*SearchQuery) Reset

func (x *SearchQuery) Reset()

func (*SearchQuery) String

func (x *SearchQuery) String() string

type UnimplementedAddServiceServer

type UnimplementedAddServiceServer struct {
}

UnimplementedAddServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedAddServiceServer) GetMockUserData

type UnsafeAddServiceServer

type UnsafeAddServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeAddServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AddServiceServer will result in compilation errors.

type User

type User struct {
	Name  string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Class string `protobuf:"bytes,2,opt,name=class,proto3" json:"class,omitempty"`
	Roll  int64  `protobuf:"varint,3,opt,name=roll,proto3" json:"roll,omitempty"`
	// contains filtered or unexported fields
}

func (*User) Descriptor deprecated

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

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetClass

func (x *User) GetClass() string

func (*User) GetName

func (x *User) GetName() string

func (*User) GetRoll

func (x *User) GetRoll() int64

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

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

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

Jump to

Keyboard shortcuts

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