tagd

package
v1.3.0-alpha.6 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TagdService_Tag_FullMethodName     = "/ai.metathings.service.tagd.TagdService/Tag"
	TagdService_Untag_FullMethodName   = "/ai.metathings.service.tagd.TagdService/Untag"
	TagdService_Remove_FullMethodName  = "/ai.metathings.service.tagd.TagdService/Remove"
	TagdService_Get_FullMethodName     = "/ai.metathings.service.tagd.TagdService/Get"
	TagdService_Query_FullMethodName   = "/ai.metathings.service.tagd.TagdService/Query"
	TagdService_Healthz_FullMethodName = "/ai.metathings.service.tagd.TagdService/Healthz"
)

Variables

View Source
var File_query_proto protoreflect.FileDescriptor
View Source
var File_remove_proto protoreflect.FileDescriptor
View Source
var File_service_proto protoreflect.FileDescriptor
View Source
var File_untag_proto protoreflect.FileDescriptor
View Source
var TagdService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "ai.metathings.service.tagd.TagdService",
	HandlerType: (*TagdServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Tag",
			Handler:    _TagdService_Tag_Handler,
		},
		{
			MethodName: "Untag",
			Handler:    _TagdService_Untag_Handler,
		},
		{
			MethodName: "Remove",
			Handler:    _TagdService_Remove_Handler,
		},
		{
			MethodName: "Get",
			Handler:    _TagdService_Get_Handler,
		},
		{
			MethodName: "Query",
			Handler:    _TagdService_Query_Handler,
		},
		{
			MethodName: "Healthz",
			Handler:    _TagdService_Healthz_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "service.proto",
}

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

Functions

func RegisterTagdServiceServer

func RegisterTagdServiceServer(s grpc.ServiceRegistrar, srv TagdServiceServer)

Types

type GetRequest

type GetRequest struct {
	Id        *wrapperspb.StringValue `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Namespace *wrapperspb.StringValue `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"`
	// contains filtered or unexported fields
}

func (*GetRequest) Descriptor deprecated

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

Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.

func (*GetRequest) GetId

func (x *GetRequest) GetId() *wrapperspb.StringValue

func (*GetRequest) GetNamespace

func (x *GetRequest) GetNamespace() *wrapperspb.StringValue

func (*GetRequest) ProtoMessage

func (*GetRequest) ProtoMessage()

func (*GetRequest) ProtoReflect added in v1.2.14

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

func (*GetRequest) Reset

func (x *GetRequest) Reset()

func (*GetRequest) String

func (x *GetRequest) String() string

type GetResponse

type GetResponse struct {
	Id        string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Tags      []string `protobuf:"bytes,2,rep,name=tags,proto3" json:"tags,omitempty"`
	Namespace string   `protobuf:"bytes,3,opt,name=namespace,proto3" json:"namespace,omitempty"`
	// contains filtered or unexported fields
}

func (*GetResponse) Descriptor deprecated

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

Deprecated: Use GetResponse.ProtoReflect.Descriptor instead.

func (*GetResponse) GetId

func (x *GetResponse) GetId() string

func (*GetResponse) GetNamespace

func (x *GetResponse) GetNamespace() string

func (*GetResponse) GetTags

func (x *GetResponse) GetTags() []string

func (*GetResponse) ProtoMessage

func (*GetResponse) ProtoMessage()

func (*GetResponse) ProtoReflect added in v1.2.14

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

func (*GetResponse) Reset

func (x *GetResponse) Reset()

func (*GetResponse) String

func (x *GetResponse) String() string

type QueryRequest

type QueryRequest struct {
	Tags      []*wrapperspb.StringValue `protobuf:"bytes,1,rep,name=tags,proto3" json:"tags,omitempty"`
	Namespace *wrapperspb.StringValue   `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryRequest) Descriptor deprecated

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

Deprecated: Use QueryRequest.ProtoReflect.Descriptor instead.

func (*QueryRequest) GetNamespace

func (x *QueryRequest) GetNamespace() *wrapperspb.StringValue

func (*QueryRequest) GetTags

func (x *QueryRequest) GetTags() []*wrapperspb.StringValue

func (*QueryRequest) ProtoMessage

func (*QueryRequest) ProtoMessage()

func (*QueryRequest) ProtoReflect added in v1.2.14

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

func (*QueryRequest) Reset

func (x *QueryRequest) Reset()

func (*QueryRequest) String

func (x *QueryRequest) String() string

type QueryResponse

type QueryResponse struct {
	Tags []string `protobuf:"bytes,1,rep,name=tags,proto3" json:"tags,omitempty"`
	Ids  []string `protobuf:"bytes,2,rep,name=ids,proto3" json:"ids,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryResponse) Descriptor deprecated

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

Deprecated: Use QueryResponse.ProtoReflect.Descriptor instead.

func (*QueryResponse) GetIds

func (x *QueryResponse) GetIds() []string

func (*QueryResponse) GetTags

func (x *QueryResponse) GetTags() []string

func (*QueryResponse) ProtoMessage

func (*QueryResponse) ProtoMessage()

func (*QueryResponse) ProtoReflect added in v1.2.14

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

func (*QueryResponse) Reset

func (x *QueryResponse) Reset()

func (*QueryResponse) String

func (x *QueryResponse) String() string

type RemoveRequest

type RemoveRequest struct {
	Id        *wrapperspb.StringValue `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Namespace *wrapperspb.StringValue `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"`
	// contains filtered or unexported fields
}

func (*RemoveRequest) Descriptor deprecated

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

Deprecated: Use RemoveRequest.ProtoReflect.Descriptor instead.

func (*RemoveRequest) GetId

func (x *RemoveRequest) GetId() *wrapperspb.StringValue

func (*RemoveRequest) GetNamespace

func (x *RemoveRequest) GetNamespace() *wrapperspb.StringValue

func (*RemoveRequest) ProtoMessage

func (*RemoveRequest) ProtoMessage()

func (*RemoveRequest) ProtoReflect added in v1.2.14

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

func (*RemoveRequest) Reset

func (x *RemoveRequest) Reset()

func (*RemoveRequest) String

func (x *RemoveRequest) String() string

type TagRequest

type TagRequest struct {
	Id        *wrapperspb.StringValue   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Tags      []*wrapperspb.StringValue `protobuf:"bytes,2,rep,name=tags,proto3" json:"tags,omitempty"`
	Namespace *wrapperspb.StringValue   `protobuf:"bytes,3,opt,name=namespace,proto3" json:"namespace,omitempty"`
	// contains filtered or unexported fields
}

func (*TagRequest) Descriptor deprecated

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

Deprecated: Use TagRequest.ProtoReflect.Descriptor instead.

func (*TagRequest) GetId

func (x *TagRequest) GetId() *wrapperspb.StringValue

func (*TagRequest) GetNamespace

func (x *TagRequest) GetNamespace() *wrapperspb.StringValue

func (*TagRequest) GetTags

func (x *TagRequest) GetTags() []*wrapperspb.StringValue

func (*TagRequest) ProtoMessage

func (*TagRequest) ProtoMessage()

func (*TagRequest) ProtoReflect added in v1.2.14

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

func (*TagRequest) Reset

func (x *TagRequest) Reset()

func (*TagRequest) String

func (x *TagRequest) String() string

type TagdServiceClient

type TagdServiceClient interface {
	Tag(ctx context.Context, in *TagRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	Untag(ctx context.Context, in *UntagRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	Remove(ctx context.Context, in *RemoveRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error)
	Query(ctx context.Context, in *QueryRequest, opts ...grpc.CallOption) (*QueryResponse, error)
	Healthz(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*wrapperspb.StringValue, error)
}

TagdServiceClient is the client API for TagdService 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.

type TagdServiceServer

type TagdServiceServer interface {
	Tag(context.Context, *TagRequest) (*emptypb.Empty, error)
	Untag(context.Context, *UntagRequest) (*emptypb.Empty, error)
	Remove(context.Context, *RemoveRequest) (*emptypb.Empty, error)
	Get(context.Context, *GetRequest) (*GetResponse, error)
	Query(context.Context, *QueryRequest) (*QueryResponse, error)
	Healthz(context.Context, *emptypb.Empty) (*wrapperspb.StringValue, error)
	// contains filtered or unexported methods
}

TagdServiceServer is the server API for TagdService service. All implementations must embed UnimplementedTagdServiceServer for forward compatibility.

type UnimplementedTagdServiceServer added in v1.2.14

type UnimplementedTagdServiceServer struct{}

UnimplementedTagdServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedTagdServiceServer) Get added in v1.2.14

func (UnimplementedTagdServiceServer) Healthz

func (UnimplementedTagdServiceServer) Query added in v1.2.14

func (UnimplementedTagdServiceServer) Remove added in v1.2.14

func (UnimplementedTagdServiceServer) Tag added in v1.2.14

func (UnimplementedTagdServiceServer) Untag added in v1.2.14

type UnsafeTagdServiceServer

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

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

type UntagRequest

type UntagRequest struct {
	Id        *wrapperspb.StringValue   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Tags      []*wrapperspb.StringValue `protobuf:"bytes,2,rep,name=tags,proto3" json:"tags,omitempty"`
	Namespace *wrapperspb.StringValue   `protobuf:"bytes,3,opt,name=namespace,proto3" json:"namespace,omitempty"`
	// contains filtered or unexported fields
}

func (*UntagRequest) Descriptor deprecated

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

Deprecated: Use UntagRequest.ProtoReflect.Descriptor instead.

func (*UntagRequest) GetId

func (x *UntagRequest) GetId() *wrapperspb.StringValue

func (*UntagRequest) GetNamespace

func (x *UntagRequest) GetNamespace() *wrapperspb.StringValue

func (*UntagRequest) GetTags

func (x *UntagRequest) GetTags() []*wrapperspb.StringValue

func (*UntagRequest) ProtoMessage

func (*UntagRequest) ProtoMessage()

func (*UntagRequest) ProtoReflect added in v1.2.14

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

func (*UntagRequest) Reset

func (x *UntagRequest) Reset()

func (*UntagRequest) String

func (x *UntagRequest) String() string

Jump to

Keyboard shortcuts

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