pb

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2021 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

Code generated by protoc-gen-go-kit. DO NOT EDIT. versions: - protoc-gen-go-kit v0.0.1-devel - protoc v3.6.1

Code generated by protoc-gen-go-kit-mux. DO NOT EDIT. versions: - protoc-gen-go-kit-mux v0.0.1-devel - protoc v3.6.1

Code generated by protoc-gen-go-kit. DO NOT EDIT. versions: - protoc-gen-go-kit v0.0.1-devel - protoc v3.6.1

Code generated by protoc-gen-go-kit-mux. DO NOT EDIT. versions: - protoc-gen-go-kit-mux v0.0.1-devel - protoc v3.6.1

Code generated by protoc-gen-go-kit. DO NOT EDIT. versions: - protoc-gen-go-kit v0.0.1-devel - protoc v3.6.1

Code generated by protoc-gen-go-kit-mux. DO NOT EDIT. versions: - protoc-gen-go-kit-mux v0.0.1-devel - protoc v3.6.1

Index

Constants

This section is empty.

Variables

View Source
var Example_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "pb.Example",
	HandlerType: (*ExampleServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "Hello",
			Handler:       _Example_Hello_Handler,
			ClientStreams: true,
		},
	},
	Metadata: "example.proto",
}

Example_ServiceDesc is the grpc.ServiceDesc for Example 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_example_proto protoreflect.FileDescriptor
View Source
var V0_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "pb.V0",
	HandlerType: (*V0Server)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Health",
			Handler:    _V0_Health_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "v0.proto",
}

V0_ServiceDesc is the grpc.ServiceDesc for V0 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 V1_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "pb.V1",
	HandlerType: (*V1Server)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetDepartment",
			Handler:    _V1_GetDepartment_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "v1.proto",
}

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

Functions

func RegisterExampleServer

func RegisterExampleServer(s grpc.ServiceRegistrar, srv ExampleServer)

func RegisterKitHTTPExampleHandlerSet

func RegisterKitHTTPExampleHandlerSet(r *mux.Router, set ExampleKitHTTPHandlerSet)

RegisterKitHTTPExampleHandlerSet - regist all handler

func RegisterKitHTTPV0HandlerSet

func RegisterKitHTTPV0HandlerSet(r *mux.Router, set V0KitHTTPHandlerSet)

RegisterKitHTTPV0HandlerSet - regist all handler

func RegisterKitHTTPV0HealthHandler

func RegisterKitHTTPV0HealthHandler(r *mux.Router, set V0KitHTTPHandlerSet)

Health godoc @Summary Health @Description 健康检查 @Tags v0 @Accept json @Produce json @Param id path string true "部门ID" @Success 200 {object} util.HTTPObjectResponse{data=basic.Department} "成功" @Router /v0/health

func RegisterKitHTTPV1GetDepartmentHandler

func RegisterKitHTTPV1GetDepartmentHandler(r *mux.Router, set V1KitHTTPHandlerSet)

GetDepartment godoc

func RegisterKitHTTPV1HandlerSet

func RegisterKitHTTPV1HandlerSet(r *mux.Router, set V1KitHTTPHandlerSet)

RegisterKitHTTPV1HandlerSet - regist all handler

func RegisterV0Server

func RegisterV0Server(s grpc.ServiceRegistrar, srv V0Server)

func RegisterV1Server

func RegisterV1Server(s grpc.ServiceRegistrar, srv V1Server)

Types

type ExampleClient

type ExampleClient interface {
	// 健康检查
	Hello(ctx context.Context, opts ...grpc.CallOption) (Example_HelloClient, error)
}

ExampleClient is the client API for Example 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 NewExampleClient

func NewExampleClient(cc grpc.ClientConnInterface) ExampleClient

type ExampleKitClient

type ExampleKitClient interface {
}

ExampleKitClient is the go-kit client API for Example service.

type ExampleKitEndpointSet

type ExampleKitEndpointSet struct {
}

ExampleKitEndpointSet is realize kit/endpoint.Endpoint

func NewExampleKitEndpointSet

func NewExampleKitEndpointSet(srv ExampleKitServer, mws ...endpoint.Middleware) ExampleKitEndpointSet

type ExampleKitGRPCHandlerSet

type ExampleKitGRPCHandlerSet struct {
	HelloHandler *grpc.Server
}

ExampleKitGRPCHandlerSet is realize kit/transport/grpc.Server set.

type ExampleKitGRPCTransport

type ExampleKitGRPCTransport interface {
}

ExampleKitGRPCTransport defined from kit/transport/grpc.

type ExampleKitHTTPHandlerSet

type ExampleKitHTTPHandlerSet struct {
	HelloHandler *http.Server
}

ExampleKitHTTPHandlerSet is realize kit/transport/http.Server set.

type ExampleKitHTTPTransport

type ExampleKitHTTPTransport interface {
}

ExampleKitHTTPTransport defined from kit/transport/http.

type ExampleKitServer

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

ExampleKitServer is the server API for Example service. All implementations must embed UnimplementedExampleKitServer for forward compatibility

type ExampleServer

type ExampleServer interface {
	// 健康检查
	Hello(Example_HelloServer) error
	// contains filtered or unexported methods
}

ExampleServer is the server API for Example service. All implementations must embed UnimplementedExampleServer for forward compatibility

type Example_HelloClient

type Example_HelloClient interface {
	Send(*HelloRequest) error
	CloseAndRecv() (*HelloResponse, error)
	grpc.ClientStream
}

type Example_HelloServer

type Example_HelloServer interface {
	SendAndClose(*HelloResponse) error
	Recv() (*HelloRequest, error)
	grpc.ServerStream
}

type GetDepartmentRequest

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

func (*GetDepartmentRequest) Descriptor deprecated

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

Deprecated: Use GetDepartmentRequest.ProtoReflect.Descriptor instead.

func (*GetDepartmentRequest) GetId

func (x *GetDepartmentRequest) GetId() string

func (*GetDepartmentRequest) ProtoMessage

func (*GetDepartmentRequest) ProtoMessage()

func (*GetDepartmentRequest) ProtoReflect

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

func (*GetDepartmentRequest) Reset

func (x *GetDepartmentRequest) Reset()

func (*GetDepartmentRequest) String

func (x *GetDepartmentRequest) String() string

type GetDepartmentResponse

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

func (*GetDepartmentResponse) Descriptor deprecated

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

Deprecated: Use GetDepartmentResponse.ProtoReflect.Descriptor instead.

func (*GetDepartmentResponse) GetData

func (x *GetDepartmentResponse) GetData() string

func (*GetDepartmentResponse) ProtoMessage

func (*GetDepartmentResponse) ProtoMessage()

func (*GetDepartmentResponse) ProtoReflect

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

func (*GetDepartmentResponse) Reset

func (x *GetDepartmentResponse) Reset()

func (*GetDepartmentResponse) String

func (x *GetDepartmentResponse) String() string

type HealthRequest

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

func (*HealthRequest) Descriptor deprecated

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

Deprecated: Use HealthRequest.ProtoReflect.Descriptor instead.

func (*HealthRequest) ProtoMessage

func (*HealthRequest) ProtoMessage()

func (*HealthRequest) ProtoReflect

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

func (*HealthRequest) Reset

func (x *HealthRequest) Reset()

func (*HealthRequest) String

func (x *HealthRequest) String() string

type HealthResponse

type HealthResponse struct {
	Healthy bool `protobuf:"varint,1,opt,name=healthy,proto3" json:"healthy,omitempty"`
	// contains filtered or unexported fields
}

func (*HealthResponse) Descriptor deprecated

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

Deprecated: Use HealthResponse.ProtoReflect.Descriptor instead.

func (*HealthResponse) GetHealthy

func (x *HealthResponse) GetHealthy() bool

func (*HealthResponse) ProtoMessage

func (*HealthResponse) ProtoMessage()

func (*HealthResponse) ProtoReflect

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

func (*HealthResponse) Reset

func (x *HealthResponse) Reset()

func (*HealthResponse) String

func (x *HealthResponse) String() string

type HelloRequest

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

func (*HelloRequest) Descriptor deprecated

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

Deprecated: Use HelloRequest.ProtoReflect.Descriptor instead.

func (*HelloRequest) GetName

func (x *HelloRequest) GetName() string

func (*HelloRequest) ProtoMessage

func (*HelloRequest) ProtoMessage()

func (*HelloRequest) ProtoReflect

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

func (*HelloRequest) Reset

func (x *HelloRequest) Reset()

func (*HelloRequest) String

func (x *HelloRequest) String() string

type HelloResponse

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

func (*HelloResponse) Descriptor deprecated

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

Deprecated: Use HelloResponse.ProtoReflect.Descriptor instead.

func (*HelloResponse) GetReply

func (x *HelloResponse) GetReply() string

func (*HelloResponse) ProtoMessage

func (*HelloResponse) ProtoMessage()

func (*HelloResponse) ProtoReflect

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

func (*HelloResponse) Reset

func (x *HelloResponse) Reset()

func (*HelloResponse) String

func (x *HelloResponse) String() string

type UnimplementedExampleKitServer

type UnimplementedExampleKitServer struct {
}

UnimplementedExampleKitServer must be embedded to have forward compatible implementations.

type UnimplementedExampleServer

type UnimplementedExampleServer struct {
}

UnimplementedExampleServer must be embedded to have forward compatible implementations.

func (UnimplementedExampleServer) Hello

type UnimplementedV0KitServer

type UnimplementedV0KitServer struct {
}

UnimplementedV0KitServer must be embedded to have forward compatible implementations.

func (UnimplementedV0KitServer) Health

type UnimplementedV0Server

type UnimplementedV0Server struct {
}

UnimplementedV0Server must be embedded to have forward compatible implementations.

func (UnimplementedV0Server) Health

type UnimplementedV1KitServer

type UnimplementedV1KitServer struct {
}

UnimplementedV1KitServer must be embedded to have forward compatible implementations.

func (UnimplementedV1KitServer) GetDepartment

type UnimplementedV1Server

type UnimplementedV1Server struct {
}

UnimplementedV1Server must be embedded to have forward compatible implementations.

func (UnimplementedV1Server) GetDepartment

type UnsafeExampleKitServer

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

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

type UnsafeExampleServer

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

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

type UnsafeV0KitServer

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

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

type UnsafeV0Server

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

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

type UnsafeV1KitServer

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

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

type UnsafeV1Server

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

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

type V0Client

type V0Client interface {
	// 健康检查
	Health(ctx context.Context, in *HealthRequest, opts ...grpc.CallOption) (*HealthResponse, error)
}

V0Client is the client API for V0 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 NewV0Client

func NewV0Client(cc grpc.ClientConnInterface) V0Client

type V0KitClient

type V0KitClient interface {
	// 健康检查
	Health(ctx context.Context, in *HealthRequest) (out *HealthResponse, err error)
}

V0KitClient is the go-kit client API for V0 service.

func NewV0KitClient

func NewV0KitClient(s V0KitEndpointSet) V0KitClient

type V0KitEndpointSet

type V0KitEndpointSet struct {
	// 健康检查
	HealthEndpoint endpoint.Endpoint
}

V0KitEndpointSet is realize kit/endpoint.Endpoint

func NewV0KitEndpointSet

func NewV0KitEndpointSet(srv V0KitServer, mws ...endpoint.Middleware) V0KitEndpointSet

type V0KitGRPCHandlerSet

type V0KitGRPCHandlerSet struct {
	HealthHandler *grpc.Server
}

V0KitGRPCHandlerSet is realize kit/transport/grpc.Server set.

func NewV0KitGRPCHandlerSet

func NewV0KitGRPCHandlerSet(
	set V0KitEndpointSet,
	transport V0KitGRPCTransport,
	opts ...grpc.ServerOption,
) V0KitGRPCHandlerSet

type V0KitGRPCTransport

type V0KitGRPCTransport interface {
	DecodeHealthRequest(context.Context, interface{}) (interface{}, error)
	EncodeHealthResponse(context.Context, interface{}) (interface{}, error)
	EncodeHealthRequest(context.Context, interface{}) (interface{}, error)
	DecodeHealthResponse(context.Context, interface{}) (interface{}, error)
}

V0KitGRPCTransport defined from kit/transport/grpc.

type V0KitHTTPHandlerSet

type V0KitHTTPHandlerSet struct {
	HealthHandler *http1.Server
}

V0KitHTTPHandlerSet is realize kit/transport/http.Server set.

func NewV0KitHTTPHandlerSet

func NewV0KitHTTPHandlerSet(
	set V0KitEndpointSet,
	transport V0KitHTTPTransport,
	opts ...http1.ServerOption,
) V0KitHTTPHandlerSet

type V0KitHTTPTransport

type V0KitHTTPTransport interface {
	DecodeHealthRequest(context.Context, *http.Request) (interface{}, error)
	EncodeHealthResponse(context.Context, http.ResponseWriter, interface{}) error
	EncodeHealthRequest(context.Context, *http.Request, interface{}) error
	DecodeHealthResponse(context.Context, *http.Response) (interface{}, error)
}

V0KitHTTPTransport defined from kit/transport/http.

type V0KitServer

type V0KitServer interface {
	// 健康检查
	Health(context.Context, *HealthRequest) (*HealthResponse, error)
	// contains filtered or unexported methods
}

V0KitServer is the server API for V0 service. All implementations must embed UnimplementedV0KitServer for forward compatibility

type V0Server

type V0Server interface {
	// 健康检查
	Health(context.Context, *HealthRequest) (*HealthResponse, error)
	// contains filtered or unexported methods
}

V0Server is the server API for V0 service. All implementations must embed UnimplementedV0Server for forward compatibility

type V1Client

type V1Client interface {
	// 获取部门详情
	GetDepartment(ctx context.Context, in *GetDepartmentRequest, opts ...grpc.CallOption) (*GetDepartmentResponse, error)
}

V1Client is the client API for V1 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 NewV1Client

func NewV1Client(cc grpc.ClientConnInterface) V1Client

type V1KitClient

type V1KitClient interface {
	// 获取部门详情
	GetDepartment(ctx context.Context, in *GetDepartmentRequest) (out *GetDepartmentResponse, err error)
}

V1KitClient is the go-kit client API for V1 service.

func NewV1KitClient

func NewV1KitClient(s V1KitEndpointSet) V1KitClient

type V1KitEndpointSet

type V1KitEndpointSet struct {
	// 获取部门详情
	GetDepartmentEndpoint endpoint.Endpoint
}

V1KitEndpointSet is realize kit/endpoint.Endpoint

func NewV1KitEndpointSet

func NewV1KitEndpointSet(srv V1KitServer, mws ...endpoint.Middleware) V1KitEndpointSet

type V1KitGRPCHandlerSet

type V1KitGRPCHandlerSet struct {
	GetDepartmentHandler *grpc.Server
}

V1KitGRPCHandlerSet is realize kit/transport/grpc.Server set.

func NewV1KitGRPCHandlerSet

func NewV1KitGRPCHandlerSet(
	set V1KitEndpointSet,
	transport V1KitGRPCTransport,
	opts ...grpc.ServerOption,
) V1KitGRPCHandlerSet

type V1KitGRPCTransport

type V1KitGRPCTransport interface {
	DecodeGetDepartmentRequest(context.Context, interface{}) (interface{}, error)
	EncodeGetDepartmentResponse(context.Context, interface{}) (interface{}, error)
	EncodeGetDepartmentRequest(context.Context, interface{}) (interface{}, error)
	DecodeGetDepartmentResponse(context.Context, interface{}) (interface{}, error)
}

V1KitGRPCTransport defined from kit/transport/grpc.

type V1KitHTTPHandlerSet

type V1KitHTTPHandlerSet struct {
	GetDepartmentHandler *http1.Server
}

V1KitHTTPHandlerSet is realize kit/transport/http.Server set.

func NewV1KitHTTPHandlerSet

func NewV1KitHTTPHandlerSet(
	set V1KitEndpointSet,
	transport V1KitHTTPTransport,
	opts ...http1.ServerOption,
) V1KitHTTPHandlerSet

type V1KitHTTPTransport

type V1KitHTTPTransport interface {
	DecodeGetDepartmentRequest(context.Context, *http.Request) (interface{}, error)
	EncodeGetDepartmentResponse(context.Context, http.ResponseWriter, interface{}) error
	EncodeGetDepartmentRequest(context.Context, *http.Request, interface{}) error
	DecodeGetDepartmentResponse(context.Context, *http.Response) (interface{}, error)
}

V1KitHTTPTransport defined from kit/transport/http.

type V1KitServer

type V1KitServer interface {
	// 获取部门详情
	GetDepartment(context.Context, *GetDepartmentRequest) (*GetDepartmentResponse, error)
	// contains filtered or unexported methods
}

V1KitServer is the server API for V1 service. All implementations must embed UnimplementedV1KitServer for forward compatibility

type V1Server

type V1Server interface {
	// 获取部门详情
	GetDepartment(context.Context, *GetDepartmentRequest) (*GetDepartmentResponse, error)
	// contains filtered or unexported methods
}

V1Server is the server API for V1 service. All implementations must embed UnimplementedV1Server for forward compatibility

Directories

Path Synopsis
Code generated by protoc-gen-go-kit-mux.
Code generated by protoc-gen-go-kit-mux.

Jump to

Keyboard shortcuts

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