pbdept

package
v0.0.0-...-1018313 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const OperationDeptCreate = "/dept.v1.Dept/Create"
View Source
const OperationDeptQuery = "/dept.v1.Dept/Query"

Variables

View Source
var Dept_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "dept.v1.Dept",
	HandlerType: (*DeptServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Create",
			Handler:    _Dept_Create_Handler,
		},
		{
			MethodName: "Query",
			Handler:    _Dept_Query_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "dept/v1/dept_gen.proto",
}

Dept_ServiceDesc is the grpc.ServiceDesc for Dept 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_dept_v1_dept_gen_proto protoreflect.FileDescriptor

Functions

func RegisterDeptHTTPServer

func RegisterDeptHTTPServer(s *http.Server, srv DeptHTTPServer)

func RegisterDeptServer

func RegisterDeptServer(s grpc.ServiceRegistrar, srv DeptServer)

Types

type DeptClient

type DeptClient interface {
	Create(ctx context.Context, in *structpb.Struct, opts ...grpc.CallOption) (*DeptCreateResponse, error)
	Query(ctx context.Context, in *api.QueryRequest, opts ...grpc.CallOption) (*DeptQueryResponse, error)
}

DeptClient is the client API for Dept 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 NewDeptClient

func NewDeptClient(cc grpc.ClientConnInterface) DeptClient

type DeptCreateResponse

type DeptCreateResponse struct {
	Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeptCreateResponse) Descriptor deprecated

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

Deprecated: Use DeptCreateResponse.ProtoReflect.Descriptor instead.

func (*DeptCreateResponse) GetId

func (x *DeptCreateResponse) GetId() int32

func (*DeptCreateResponse) ProtoMessage

func (*DeptCreateResponse) ProtoMessage()

func (*DeptCreateResponse) ProtoReflect

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

func (*DeptCreateResponse) Reset

func (x *DeptCreateResponse) Reset()

func (*DeptCreateResponse) String

func (x *DeptCreateResponse) String() string

type DeptHTTPClient

type DeptHTTPClient interface {
	Create(ctx context.Context, req *structpb.Struct, opts ...http.CallOption) (rsp *DeptCreateResponse, err error)
	Query(ctx context.Context, req *api.QueryRequest, opts ...http.CallOption) (rsp *DeptQueryResponse, err error)
}

func NewDeptHTTPClient

func NewDeptHTTPClient(client *http.Client) DeptHTTPClient

type DeptHTTPClientImpl

type DeptHTTPClientImpl struct {
	// contains filtered or unexported fields
}

func (*DeptHTTPClientImpl) Create

func (*DeptHTTPClientImpl) Query

type DeptHTTPServer

type DeptHTTPServer interface {
	Create(context.Context, *structpb.Struct) (*DeptCreateResponse, error)
	Query(context.Context, *api.QueryRequest) (*DeptQueryResponse, error)
}

type DeptQueryResponse

type DeptQueryResponse struct {
	Meta *DeptQueryResponseMeta `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"`
	Data []*structpb.Struct     `protobuf:"bytes,2,rep,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*DeptQueryResponse) Descriptor deprecated

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

Deprecated: Use DeptQueryResponse.ProtoReflect.Descriptor instead.

func (*DeptQueryResponse) GetData

func (x *DeptQueryResponse) GetData() []*structpb.Struct

func (*DeptQueryResponse) GetMeta

func (*DeptQueryResponse) ProtoMessage

func (*DeptQueryResponse) ProtoMessage()

func (*DeptQueryResponse) ProtoReflect

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

func (*DeptQueryResponse) Reset

func (x *DeptQueryResponse) Reset()

func (*DeptQueryResponse) String

func (x *DeptQueryResponse) String() string

type DeptQueryResponseMeta

type DeptQueryResponseMeta struct {
	Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
	// contains filtered or unexported fields
}

func (*DeptQueryResponseMeta) Descriptor deprecated

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

Deprecated: Use DeptQueryResponseMeta.ProtoReflect.Descriptor instead.

func (*DeptQueryResponseMeta) GetCount

func (x *DeptQueryResponseMeta) GetCount() int64

func (*DeptQueryResponseMeta) ProtoMessage

func (*DeptQueryResponseMeta) ProtoMessage()

func (*DeptQueryResponseMeta) ProtoReflect

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

func (*DeptQueryResponseMeta) Reset

func (x *DeptQueryResponseMeta) Reset()

func (*DeptQueryResponseMeta) String

func (x *DeptQueryResponseMeta) String() string

type DeptServer

type DeptServer interface {
	Create(context.Context, *structpb.Struct) (*DeptCreateResponse, error)
	Query(context.Context, *api.QueryRequest) (*DeptQueryResponse, error)
	// contains filtered or unexported methods
}

DeptServer is the server API for Dept service. All implementations must embed UnimplementedDeptServer for forward compatibility

type UnimplementedDeptServer

type UnimplementedDeptServer struct {
}

UnimplementedDeptServer must be embedded to have forward compatible implementations.

func (UnimplementedDeptServer) Create

func (UnimplementedDeptServer) Query

type UnsafeDeptServer

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

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

Jump to

Keyboard shortcuts

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