tag

package
v0.0.0-...-a79a6e6 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2022 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Tag_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "tag.Tag",
	HandlerType: (*TagServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "AddTag",
			Handler:    _Tag_AddTag_Handler,
		},
		{
			MethodName: "ListTag",
			Handler:    _Tag_ListTag_Handler,
		},
		{
			MethodName: "DeleteTag",
			Handler:    _Tag_DeleteTag_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "tag.proto",
}

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

Functions

func RegisterTagServer

func RegisterTagServer(s grpc.ServiceRegistrar, srv TagServer)

Types

type AddRequest

type AddRequest struct {
	Name        string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Description string   `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	Class       []string `protobuf:"bytes,3,rep,name=class,proto3" json:"class,omitempty"`
	// contains filtered or unexported fields
}

Request for Add Tag

func (*AddRequest) Descriptor deprecated

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

Deprecated: Use AddRequest.ProtoReflect.Descriptor instead.

func (*AddRequest) GetClass

func (x *AddRequest) GetClass() []string

func (*AddRequest) GetDescription

func (x *AddRequest) GetDescription() string

func (*AddRequest) GetName

func (x *AddRequest) GetName() string

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 DeleteRequest

type DeleteRequest struct {
	Id          []string `protobuf:"bytes,1,rep,name=id,proto3" json:"id,omitempty"`
	IsDeleteAll bool     `protobuf:"varint,2,opt,name=isDeleteAll,proto3" json:"isDeleteAll,omitempty"`
	// contains filtered or unexported fields
}

Request for Delete tag

func (*DeleteRequest) Descriptor deprecated

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

Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead.

func (*DeleteRequest) GetId

func (x *DeleteRequest) GetId() []string

func (*DeleteRequest) GetIsDeleteAll

func (x *DeleteRequest) GetIsDeleteAll() bool

func (*DeleteRequest) ProtoMessage

func (*DeleteRequest) ProtoMessage()

func (*DeleteRequest) ProtoReflect

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

func (*DeleteRequest) Reset

func (x *DeleteRequest) Reset()

func (*DeleteRequest) String

func (x *DeleteRequest) String() string

type ListRequest

type ListRequest struct {
	Id    []string `protobuf:"bytes,1,rep,name=id,proto3" json:"id,omitempty"`
	Name  string   `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Class []string `protobuf:"bytes,3,rep,name=class,proto3" json:"class,omitempty"`
	First int64    `protobuf:"varint,4,opt,name=first,proto3" json:"first,omitempty"`
	Last  int64    `protobuf:"varint,5,opt,name=last,proto3" json:"last,omitempty"`
	Limit int64    `protobuf:"varint,6,opt,name=limit,proto3" json:"limit,omitempty"`
	Count bool     `protobuf:"varint,7,opt,name=count,proto3" json:"count,omitempty"`
	// contains filtered or unexported fields
}

List Tag Request

func (*ListRequest) Descriptor deprecated

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

Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.

func (*ListRequest) GetClass

func (x *ListRequest) GetClass() []string

func (*ListRequest) GetCount

func (x *ListRequest) GetCount() bool

func (*ListRequest) GetFirst

func (x *ListRequest) GetFirst() int64

func (*ListRequest) GetId

func (x *ListRequest) GetId() []string

func (*ListRequest) GetLast

func (x *ListRequest) GetLast() int64

func (*ListRequest) GetLimit

func (x *ListRequest) GetLimit() int64

func (*ListRequest) GetName

func (x *ListRequest) GetName() string

func (*ListRequest) ProtoMessage

func (*ListRequest) ProtoMessage()

func (*ListRequest) ProtoReflect

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

func (*ListRequest) Reset

func (x *ListRequest) Reset()

func (*ListRequest) String

func (x *ListRequest) String() string

type ListResponse

type ListResponse struct {
	TagResponse []*TagResponse `protobuf:"bytes,1,rep,name=tagResponse,proto3" json:"tagResponse,omitempty"`
	Count       int64          `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
	// contains filtered or unexported fields
}

Response to list tag

func (*ListResponse) Descriptor deprecated

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

Deprecated: Use ListResponse.ProtoReflect.Descriptor instead.

func (*ListResponse) GetCount

func (x *ListResponse) GetCount() int64

func (*ListResponse) GetTagResponse

func (x *ListResponse) GetTagResponse() []*TagResponse

func (*ListResponse) ProtoMessage

func (*ListResponse) ProtoMessage()

func (*ListResponse) ProtoReflect

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

func (*ListResponse) Reset

func (x *ListResponse) Reset()

func (*ListResponse) String

func (x *ListResponse) String() string

type MessageResponse

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

Response for Tag

func (*MessageResponse) Descriptor deprecated

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

Deprecated: Use MessageResponse.ProtoReflect.Descriptor instead.

func (*MessageResponse) GetMessage

func (x *MessageResponse) GetMessage() string

func (*MessageResponse) ProtoMessage

func (*MessageResponse) ProtoMessage()

func (*MessageResponse) ProtoReflect

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

func (*MessageResponse) Reset

func (x *MessageResponse) Reset()

func (*MessageResponse) String

func (x *MessageResponse) String() string

type TagClient

type TagClient interface {
	AddTag(ctx context.Context, in *AddRequest, opts ...grpc.CallOption) (*MessageResponse, error)
	ListTag(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error)
	DeleteTag(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*MessageResponse, error)
}

TagClient is the client API for Tag 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 NewTagClient

func NewTagClient(cc grpc.ClientConnInterface) TagClient

type TagResponse

type TagResponse struct {
	Id          string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name        string   `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Description string   `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	Class       []string `protobuf:"bytes,4,rep,name=class,proto3" json:"class,omitempty"`
	CreatedAt   string   `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// contains filtered or unexported fields
}

Tag Response Structure

func (*TagResponse) Descriptor deprecated

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

Deprecated: Use TagResponse.ProtoReflect.Descriptor instead.

func (*TagResponse) GetClass

func (x *TagResponse) GetClass() []string

func (*TagResponse) GetCreatedAt

func (x *TagResponse) GetCreatedAt() string

func (*TagResponse) GetDescription

func (x *TagResponse) GetDescription() string

func (*TagResponse) GetId

func (x *TagResponse) GetId() string

func (*TagResponse) GetName

func (x *TagResponse) GetName() string

func (*TagResponse) ProtoMessage

func (*TagResponse) ProtoMessage()

func (*TagResponse) ProtoReflect

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

func (*TagResponse) Reset

func (x *TagResponse) Reset()

func (*TagResponse) String

func (x *TagResponse) String() string

type TagServer

type TagServer interface {
	AddTag(context.Context, *AddRequest) (*MessageResponse, error)
	ListTag(context.Context, *ListRequest) (*ListResponse, error)
	DeleteTag(context.Context, *DeleteRequest) (*MessageResponse, error)
	// contains filtered or unexported methods
}

TagServer is the server API for Tag service. All implementations must embed UnimplementedTagServer for forward compatibility

type UnimplementedTagServer

type UnimplementedTagServer struct {
}

UnimplementedTagServer must be embedded to have forward compatible implementations.

func (UnimplementedTagServer) AddTag

func (UnimplementedTagServer) DeleteTag

func (UnimplementedTagServer) ListTag

type UnsafeTagServer

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

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

Jump to

Keyboard shortcuts

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