__

package
v0.0.0-...-0fb5409 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_datamock_proto protoreflect.FileDescriptor

Functions

func RegisterDatamockServer

func RegisterDatamockServer(s *grpc.Server, srv DatamockServer)

Types

type DatamockClient

type DatamockClient interface {
	GetMockUserData(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error)
}

DatamockClient is the client API for Datamock service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewDatamockClient

func NewDatamockClient(cc grpc.ClientConnInterface) DatamockClient

type DatamockServer

type DatamockServer interface {
	GetMockUserData(context.Context, *Request) (*Response, error)
}

DatamockServer is the server API for Datamock service.

type Request

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

func (*Request) Descriptor deprecated

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

Deprecated: Use Request.ProtoReflect.Descriptor instead.

func (*Request) GetName

func (x *Request) GetName() string

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) ProtoReflect

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

func (*Request) Reset

func (x *Request) Reset()

func (*Request) String

func (x *Request) String() string

type Response

type Response struct {
	Name  string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Class int64  `protobuf:"varint,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 (*Response) Descriptor deprecated

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

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetClass

func (x *Response) GetClass() int64

func (*Response) GetName

func (x *Response) GetName() string

func (*Response) GetRoll

func (x *Response) GetRoll() int64

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) ProtoReflect

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

func (*Response) Reset

func (x *Response) Reset()

func (*Response) String

func (x *Response) String() string

type UnimplementedDatamockServer

type UnimplementedDatamockServer struct {
}

UnimplementedDatamockServer can be embedded to have forward compatible implementations.

func (*UnimplementedDatamockServer) GetMockUserData

Jump to

Keyboard shortcuts

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