proto

package
v0.0.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AopTest_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "TsepContent.AopTest",
	HandlerType: (*AopTestServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "hello",
			Handler:    _AopTest_Hello_Handler,
		},
		{
			MethodName: "hello2",
			Handler:    _AopTest_Hello2_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "aop.proto",
}

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

Functions

func RegisterAopTestServer

func RegisterAopTestServer(s grpc.ServiceRegistrar, srv AopTestServer)

Types

type AopTestClient

type AopTestClient interface {
	Hello(ctx context.Context, in *CheckResultReq, opts ...grpc.CallOption) (*CheckResultResp, error)
	Hello2(ctx context.Context, in *CheckResultReq, opts ...grpc.CallOption) (*CheckResultResp, error)
}

AopTestClient is the client API for AopTest 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 NewAopTestClient

func NewAopTestClient(cc grpc.ClientConnInterface) AopTestClient

type AopTestServer

type AopTestServer interface {
	Hello(context.Context, *CheckResultReq) (*CheckResultResp, error)
	Hello2(context.Context, *CheckResultReq) (*CheckResultResp, error)
	// contains filtered or unexported methods
}

AopTestServer is the server API for AopTest service. All implementations must embed UnimplementedAopTestServer for forward compatibility

type CheckResultReq

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

func (*CheckResultReq) Descriptor deprecated

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

Deprecated: Use CheckResultReq.ProtoReflect.Descriptor instead.

func (*CheckResultReq) GetHelloString

func (x *CheckResultReq) GetHelloString() string

func (*CheckResultReq) ProtoMessage

func (*CheckResultReq) ProtoMessage()

func (*CheckResultReq) ProtoReflect

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

func (*CheckResultReq) Reset

func (x *CheckResultReq) Reset()

func (*CheckResultReq) String

func (x *CheckResultReq) String() string

type CheckResultResp

type CheckResultResp struct {
	ResponseCode string `protobuf:"bytes,1,opt,name=response_code,json=responseCode,proto3" json:"response_code,omitempty"` //操作结果,1成功,0失败
	// contains filtered or unexported fields
}

func (*CheckResultResp) Descriptor deprecated

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

Deprecated: Use CheckResultResp.ProtoReflect.Descriptor instead.

func (*CheckResultResp) GetResponseCode

func (x *CheckResultResp) GetResponseCode() string

func (*CheckResultResp) ProtoMessage

func (*CheckResultResp) ProtoMessage()

func (*CheckResultResp) ProtoReflect

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

func (*CheckResultResp) Reset

func (x *CheckResultResp) Reset()

func (*CheckResultResp) String

func (x *CheckResultResp) String() string

type UnimplementedAopTestServer

type UnimplementedAopTestServer struct {
}

UnimplementedAopTestServer must be embedded to have forward compatible implementations.

func (UnimplementedAopTestServer) Hello

func (UnimplementedAopTestServer) Hello2

type UnsafeAopTestServer

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

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

Jump to

Keyboard shortcuts

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