dummy

package
v0.0.0-...-f9504cf 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 DummyDataService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "DummyDataService",
	HandlerType: (*DummyDataServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetMockUserData",
			Handler:    _DummyDataService_GetMockUserData_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "dummy.proto",
}

DummyDataService_ServiceDesc is the grpc.ServiceDesc for DummyDataService 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_dummy_proto protoreflect.FileDescriptor

Functions

func RegisterDummyDataServiceServer

func RegisterDummyDataServiceServer(s grpc.ServiceRegistrar, srv DummyDataServiceServer)

Types

type DummyDataServiceClient

type DummyDataServiceClient interface {
	GetMockUserData(ctx context.Context, in *DummyUsername, opts ...grpc.CallOption) (*DummyUser, error)
}

DummyDataServiceClient is the client API for DummyDataService 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.

type DummyDataServiceServer

type DummyDataServiceServer interface {
	GetMockUserData(context.Context, *DummyUsername) (*DummyUser, error)
	// contains filtered or unexported methods
}

DummyDataServiceServer is the server API for DummyDataService service. All implementations must embed UnimplementedDummyDataServiceServer for forward compatibility

type DummyUser

type DummyUser 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 (*DummyUser) Descriptor deprecated

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

Deprecated: Use DummyUser.ProtoReflect.Descriptor instead.

func (*DummyUser) GetClass

func (x *DummyUser) GetClass() string

func (*DummyUser) GetName

func (x *DummyUser) GetName() string

func (*DummyUser) GetRoll

func (x *DummyUser) GetRoll() int64

func (*DummyUser) ProtoMessage

func (*DummyUser) ProtoMessage()

func (*DummyUser) ProtoReflect

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

func (*DummyUser) Reset

func (x *DummyUser) Reset()

func (*DummyUser) String

func (x *DummyUser) String() string

type DummyUsername

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

func (*DummyUsername) Descriptor deprecated

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

Deprecated: Use DummyUsername.ProtoReflect.Descriptor instead.

func (*DummyUsername) GetName

func (x *DummyUsername) GetName() string

func (*DummyUsername) ProtoMessage

func (*DummyUsername) ProtoMessage()

func (*DummyUsername) ProtoReflect

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

func (*DummyUsername) Reset

func (x *DummyUsername) Reset()

func (*DummyUsername) String

func (x *DummyUsername) String() string

type UnimplementedDummyDataServiceServer

type UnimplementedDummyDataServiceServer struct {
}

UnimplementedDummyDataServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedDummyDataServiceServer) GetMockUserData

type UnsafeDummyDataServiceServer

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

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

Jump to

Keyboard shortcuts

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