apiv1

package
v0.0.0-...-b0a49f2 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ApiService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.v1.ApiService",
	HandlerType: (*ApiServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Add",
			Handler:    _ApiService_Add_Handler,
		},
		{
			MethodName: "Remove",
			Handler:    _ApiService_Remove_Handler,
		},
		{
			MethodName: "Detect",
			Handler:    _ApiService_Detect_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/v1/service.proto",
}

ApiService_ServiceDesc is the grpc.ServiceDesc for ApiService 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_api_v1_messages_proto protoreflect.FileDescriptor
View Source
var File_api_v1_service_proto protoreflect.FileDescriptor

Functions

func RegisterApiServiceServer

func RegisterApiServiceServer(s grpc.ServiceRegistrar, srv ApiServiceServer)

Types

type AddRequest

type AddRequest struct {
	ObjectId uint64   `protobuf:"varint,1,opt,name=object_id,json=objectId,proto3" json:"object_id,omitempty"`
	Index    []uint64 `protobuf:"varint,2,rep,packed,name=index,proto3" json:"index,omitempty"`
	LayerId  uint64   `protobuf:"varint,3,opt,name=layer_id,json=layerId,proto3" json:"layer_id,omitempty"`
	Data     string   `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*AddRequest) Descriptor deprecated

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

Deprecated: Use AddRequest.ProtoReflect.Descriptor instead.

func (*AddRequest) GetData

func (x *AddRequest) GetData() string

func (*AddRequest) GetIndex

func (x *AddRequest) GetIndex() []uint64

func (*AddRequest) GetLayerId

func (x *AddRequest) GetLayerId() uint64

func (*AddRequest) GetObjectId

func (x *AddRequest) GetObjectId() uint64

func (*AddRequest) ProtoMessage

func (*AddRequest) ProtoMessage()

func (*AddRequest) ProtoReflect

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

func (*AddRequest) Reset

func (x *AddRequest) Reset()

func (*AddRequest) String

func (x *AddRequest) String() string

type AddResponse

type AddResponse struct {
	Index []uint64 `protobuf:"varint,1,rep,packed,name=index,proto3" json:"index,omitempty"`
	// contains filtered or unexported fields
}

func (*AddResponse) Descriptor deprecated

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

Deprecated: Use AddResponse.ProtoReflect.Descriptor instead.

func (*AddResponse) GetIndex

func (x *AddResponse) GetIndex() []uint64

func (*AddResponse) ProtoMessage

func (*AddResponse) ProtoMessage()

func (*AddResponse) ProtoReflect

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

func (*AddResponse) Reset

func (x *AddResponse) Reset()

func (*AddResponse) String

func (x *AddResponse) String() string

type ApiServiceClient

type ApiServiceClient interface {
	Add(ctx context.Context, in *AddRequest, opts ...grpc.CallOption) (*AddResponse, error)
	Remove(ctx context.Context, in *RemoveRequest, opts ...grpc.CallOption) (*RemoveResponse, error)
	Detect(ctx context.Context, in *DetectRequest, opts ...grpc.CallOption) (*DetectResponse, error)
}

ApiServiceClient is the client API for ApiService 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 NewApiServiceClient

func NewApiServiceClient(cc grpc.ClientConnInterface) ApiServiceClient

type ApiServiceServer

type ApiServiceServer interface {
	Add(context.Context, *AddRequest) (*AddResponse, error)
	Remove(context.Context, *RemoveRequest) (*RemoveResponse, error)
	Detect(context.Context, *DetectRequest) (*DetectResponse, error)
}

ApiServiceServer is the server API for ApiService service. All implementations should embed UnimplementedApiServiceServer for forward compatibility

type DetectRequest

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

func (*DetectRequest) Descriptor deprecated

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

Deprecated: Use DetectRequest.ProtoReflect.Descriptor instead.

func (*DetectRequest) ProtoMessage

func (*DetectRequest) ProtoMessage()

func (*DetectRequest) ProtoReflect

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

func (*DetectRequest) Reset

func (x *DetectRequest) Reset()

func (*DetectRequest) String

func (x *DetectRequest) String() string

type DetectResponse

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

func (*DetectResponse) Descriptor deprecated

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

Deprecated: Use DetectResponse.ProtoReflect.Descriptor instead.

func (*DetectResponse) ProtoMessage

func (*DetectResponse) ProtoMessage()

func (*DetectResponse) ProtoReflect

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

func (*DetectResponse) Reset

func (x *DetectResponse) Reset()

func (*DetectResponse) String

func (x *DetectResponse) String() string

type RemoveRequest

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

func (*RemoveRequest) Descriptor deprecated

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

Deprecated: Use RemoveRequest.ProtoReflect.Descriptor instead.

func (*RemoveRequest) ProtoMessage

func (*RemoveRequest) ProtoMessage()

func (*RemoveRequest) ProtoReflect

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

func (*RemoveRequest) Reset

func (x *RemoveRequest) Reset()

func (*RemoveRequest) String

func (x *RemoveRequest) String() string

type RemoveResponse

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

func (*RemoveResponse) Descriptor deprecated

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

Deprecated: Use RemoveResponse.ProtoReflect.Descriptor instead.

func (*RemoveResponse) ProtoMessage

func (*RemoveResponse) ProtoMessage()

func (*RemoveResponse) ProtoReflect

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

func (*RemoveResponse) Reset

func (x *RemoveResponse) Reset()

func (*RemoveResponse) String

func (x *RemoveResponse) String() string

type UnimplementedApiServiceServer

type UnimplementedApiServiceServer struct {
}

UnimplementedApiServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedApiServiceServer) Add

func (UnimplementedApiServiceServer) Detect

func (UnimplementedApiServiceServer) Remove

type UnsafeApiServiceServer

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

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

Jump to

Keyboard shortcuts

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