service

package
v1.9.5 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Place_name = map[int32]string{
		0: "BACKLOG",
		1: "TODO",
		2: "DOING",
		3: "DONE",
	}
	Place_value = map[string]int32{
		"BACKLOG": 0,
		"TODO":    1,
		"DOING":   2,
		"DONE":    3,
	}
)

Enum value maps for Place.

View Source
var File_hashira_proto protoreflect.FileDescriptor
View Source
var Hashira_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "service.Hashira",
	HandlerType: (*HashiraServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Create",
			Handler:    _Hashira_Create_Handler,
		},
		{
			MethodName: "Update",
			Handler:    _Hashira_Update_Handler,
		},
		{
			MethodName: "Delete",
			Handler:    _Hashira_Delete_Handler,
		},
		{
			MethodName: "PhysicalDelete",
			Handler:    _Hashira_PhysicalDelete_Handler,
		},
		{
			MethodName: "Retrieve",
			Handler:    _Hashira_Retrieve_Handler,
		},
		{
			MethodName: "UpdatePriority",
			Handler:    _Hashira_UpdatePriority_Handler,
		},
		{
			MethodName: "RetrievePriority",
			Handler:    _Hashira_RetrievePriority_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "hashira.proto",
}

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

Functions

func RegisterHashiraServer

func RegisterHashiraServer(s grpc.ServiceRegistrar, srv HashiraServer)

Types

type CommandCreate

type CommandCreate struct {
	Task *Task `protobuf:"bytes,1,opt,name=task,proto3" json:"task,omitempty"`
	// contains filtered or unexported fields
}

func (*CommandCreate) Descriptor deprecated

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

Deprecated: Use CommandCreate.ProtoReflect.Descriptor instead.

func (*CommandCreate) GetTask

func (x *CommandCreate) GetTask() *Task

func (*CommandCreate) ProtoMessage

func (*CommandCreate) ProtoMessage()

func (*CommandCreate) ProtoReflect

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

func (*CommandCreate) Reset

func (x *CommandCreate) Reset()

func (*CommandCreate) String

func (x *CommandCreate) String() string

type CommandDelete

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

func (*CommandDelete) Descriptor deprecated

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

Deprecated: Use CommandDelete.ProtoReflect.Descriptor instead.

func (*CommandDelete) GetId

func (x *CommandDelete) GetId() string

func (*CommandDelete) ProtoMessage

func (*CommandDelete) ProtoMessage()

func (*CommandDelete) ProtoReflect

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

func (*CommandDelete) Reset

func (x *CommandDelete) Reset()

func (*CommandDelete) String

func (x *CommandDelete) String() string

type CommandPhysicalDelete

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

func (*CommandPhysicalDelete) Descriptor deprecated

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

Deprecated: Use CommandPhysicalDelete.ProtoReflect.Descriptor instead.

func (*CommandPhysicalDelete) GetId

func (x *CommandPhysicalDelete) GetId() string

func (*CommandPhysicalDelete) ProtoMessage

func (*CommandPhysicalDelete) ProtoMessage()

func (*CommandPhysicalDelete) ProtoReflect

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

func (*CommandPhysicalDelete) Reset

func (x *CommandPhysicalDelete) Reset()

func (*CommandPhysicalDelete) String

func (x *CommandPhysicalDelete) String() string

type CommandRetrieve

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

func (*CommandRetrieve) Descriptor deprecated

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

Deprecated: Use CommandRetrieve.ProtoReflect.Descriptor instead.

func (*CommandRetrieve) GetExcludeDeleted

func (x *CommandRetrieve) GetExcludeDeleted() bool

func (*CommandRetrieve) ProtoMessage

func (*CommandRetrieve) ProtoMessage()

func (*CommandRetrieve) ProtoReflect

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

func (*CommandRetrieve) Reset

func (x *CommandRetrieve) Reset()

func (*CommandRetrieve) String

func (x *CommandRetrieve) String() string

type CommandRetrievePriority

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

func (*CommandRetrievePriority) Descriptor deprecated

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

Deprecated: Use CommandRetrievePriority.ProtoReflect.Descriptor instead.

func (*CommandRetrievePriority) ProtoMessage

func (*CommandRetrievePriority) ProtoMessage()

func (*CommandRetrievePriority) ProtoReflect

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

func (*CommandRetrievePriority) Reset

func (x *CommandRetrievePriority) Reset()

func (*CommandRetrievePriority) String

func (x *CommandRetrievePriority) String() string

type CommandUpdate

type CommandUpdate struct {
	Task *Task `protobuf:"bytes,1,opt,name=task,proto3" json:"task,omitempty"`
	// contains filtered or unexported fields
}

func (*CommandUpdate) Descriptor deprecated

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

Deprecated: Use CommandUpdate.ProtoReflect.Descriptor instead.

func (*CommandUpdate) GetTask

func (x *CommandUpdate) GetTask() *Task

func (*CommandUpdate) ProtoMessage

func (*CommandUpdate) ProtoMessage()

func (*CommandUpdate) ProtoReflect

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

func (*CommandUpdate) Reset

func (x *CommandUpdate) Reset()

func (*CommandUpdate) String

func (x *CommandUpdate) String() string

type CommandUpdatePriority

type CommandUpdatePriority struct {
	Priorities map[string]*Priority `` /* 161-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*CommandUpdatePriority) Descriptor deprecated

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

Deprecated: Use CommandUpdatePriority.ProtoReflect.Descriptor instead.

func (*CommandUpdatePriority) GetPriorities

func (x *CommandUpdatePriority) GetPriorities() map[string]*Priority

func (*CommandUpdatePriority) ProtoMessage

func (*CommandUpdatePriority) ProtoMessage()

func (*CommandUpdatePriority) ProtoReflect

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

func (*CommandUpdatePriority) Reset

func (x *CommandUpdatePriority) Reset()

func (*CommandUpdatePriority) String

func (x *CommandUpdatePriority) String() string

type HashiraClient

type HashiraClient interface {
	Create(ctx context.Context, in *CommandCreate, opts ...grpc.CallOption) (*ResultCreate, error)
	Update(ctx context.Context, in *CommandUpdate, opts ...grpc.CallOption) (*ResultUpdate, error)
	Delete(ctx context.Context, in *CommandDelete, opts ...grpc.CallOption) (*ResultDelete, error)
	PhysicalDelete(ctx context.Context, in *CommandPhysicalDelete, opts ...grpc.CallOption) (*ResultPhysicalDelete, error)
	Retrieve(ctx context.Context, in *CommandRetrieve, opts ...grpc.CallOption) (*ResultRetrieve, error)
	UpdatePriority(ctx context.Context, in *CommandUpdatePriority, opts ...grpc.CallOption) (*ResultUpdatePriority, error)
	RetrievePriority(ctx context.Context, in *CommandRetrievePriority, opts ...grpc.CallOption) (*ResultRetrievePriority, error)
}

HashiraClient is the client API for Hashira 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 NewHashiraClient

func NewHashiraClient(cc grpc.ClientConnInterface) HashiraClient

type HashiraServer

HashiraServer is the server API for Hashira service. All implementations must embed UnimplementedHashiraServer for forward compatibility

type Place

type Place int32
const (
	Place_BACKLOG Place = 0
	Place_TODO    Place = 1
	Place_DOING   Place = 2
	Place_DONE    Place = 3
)

func (Place) Descriptor

func (Place) Descriptor() protoreflect.EnumDescriptor

func (Place) Enum

func (x Place) Enum() *Place

func (Place) EnumDescriptor deprecated

func (Place) EnumDescriptor() ([]byte, []int)

Deprecated: Use Place.Descriptor instead.

func (Place) Number

func (x Place) Number() protoreflect.EnumNumber

func (Place) String

func (x Place) String() string

func (Place) Type

func (Place) Type() protoreflect.EnumType

type Priority

type Priority struct {
	Ids     []string `protobuf:"bytes,1,rep,name=ids,proto3" json:"ids,omitempty"`
	IsDirty bool     `protobuf:"varint,2,opt,name=isDirty,proto3" json:"isDirty,omitempty"`
	// contains filtered or unexported fields
}

func (*Priority) Descriptor deprecated

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

Deprecated: Use Priority.ProtoReflect.Descriptor instead.

func (*Priority) GetIds

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

func (*Priority) GetIsDirty

func (x *Priority) GetIsDirty() bool

func (*Priority) ProtoMessage

func (*Priority) ProtoMessage()

func (*Priority) ProtoReflect

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

func (*Priority) Reset

func (x *Priority) Reset()

func (*Priority) String

func (x *Priority) String() string

type ResultCreate

type ResultCreate struct {
	Task *Task `protobuf:"bytes,1,opt,name=task,proto3" json:"task,omitempty"`
	// contains filtered or unexported fields
}

func (*ResultCreate) Descriptor deprecated

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

Deprecated: Use ResultCreate.ProtoReflect.Descriptor instead.

func (*ResultCreate) GetTask

func (x *ResultCreate) GetTask() *Task

func (*ResultCreate) ProtoMessage

func (*ResultCreate) ProtoMessage()

func (*ResultCreate) ProtoReflect

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

func (*ResultCreate) Reset

func (x *ResultCreate) Reset()

func (*ResultCreate) String

func (x *ResultCreate) String() string

type ResultDelete

type ResultDelete struct {
	Task *Task `protobuf:"bytes,1,opt,name=task,proto3" json:"task,omitempty"`
	// contains filtered or unexported fields
}

func (*ResultDelete) Descriptor deprecated

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

Deprecated: Use ResultDelete.ProtoReflect.Descriptor instead.

func (*ResultDelete) GetTask

func (x *ResultDelete) GetTask() *Task

func (*ResultDelete) ProtoMessage

func (*ResultDelete) ProtoMessage()

func (*ResultDelete) ProtoReflect

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

func (*ResultDelete) Reset

func (x *ResultDelete) Reset()

func (*ResultDelete) String

func (x *ResultDelete) String() string

type ResultPhysicalDelete

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

func (*ResultPhysicalDelete) Descriptor deprecated

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

Deprecated: Use ResultPhysicalDelete.ProtoReflect.Descriptor instead.

func (*ResultPhysicalDelete) ProtoMessage

func (*ResultPhysicalDelete) ProtoMessage()

func (*ResultPhysicalDelete) ProtoReflect

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

func (*ResultPhysicalDelete) Reset

func (x *ResultPhysicalDelete) Reset()

func (*ResultPhysicalDelete) String

func (x *ResultPhysicalDelete) String() string

type ResultRetrieve

type ResultRetrieve struct {
	Tasks map[string]*Task `` /* 151-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ResultRetrieve) Descriptor deprecated

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

Deprecated: Use ResultRetrieve.ProtoReflect.Descriptor instead.

func (*ResultRetrieve) GetTasks

func (x *ResultRetrieve) GetTasks() map[string]*Task

func (*ResultRetrieve) ProtoMessage

func (*ResultRetrieve) ProtoMessage()

func (*ResultRetrieve) ProtoReflect

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

func (*ResultRetrieve) Reset

func (x *ResultRetrieve) Reset()

func (*ResultRetrieve) String

func (x *ResultRetrieve) String() string

type ResultRetrievePriority

type ResultRetrievePriority struct {
	Priorities map[string]*Priority `` /* 161-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ResultRetrievePriority) Descriptor deprecated

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

Deprecated: Use ResultRetrievePriority.ProtoReflect.Descriptor instead.

func (*ResultRetrievePriority) GetPriorities

func (x *ResultRetrievePriority) GetPriorities() map[string]*Priority

func (*ResultRetrievePriority) ProtoMessage

func (*ResultRetrievePriority) ProtoMessage()

func (*ResultRetrievePriority) ProtoReflect

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

func (*ResultRetrievePriority) Reset

func (x *ResultRetrievePriority) Reset()

func (*ResultRetrievePriority) String

func (x *ResultRetrievePriority) String() string

type ResultUpdate

type ResultUpdate struct {
	Task *Task `protobuf:"bytes,1,opt,name=task,proto3" json:"task,omitempty"`
	// contains filtered or unexported fields
}

func (*ResultUpdate) Descriptor deprecated

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

Deprecated: Use ResultUpdate.ProtoReflect.Descriptor instead.

func (*ResultUpdate) GetTask

func (x *ResultUpdate) GetTask() *Task

func (*ResultUpdate) ProtoMessage

func (*ResultUpdate) ProtoMessage()

func (*ResultUpdate) ProtoReflect

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

func (*ResultUpdate) Reset

func (x *ResultUpdate) Reset()

func (*ResultUpdate) String

func (x *ResultUpdate) String() string

type ResultUpdatePriority

type ResultUpdatePriority struct {
	Priorities map[string]*Priority `` /* 161-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ResultUpdatePriority) Descriptor deprecated

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

Deprecated: Use ResultUpdatePriority.ProtoReflect.Descriptor instead.

func (*ResultUpdatePriority) GetPriorities

func (x *ResultUpdatePriority) GetPriorities() map[string]*Priority

func (*ResultUpdatePriority) ProtoMessage

func (*ResultUpdatePriority) ProtoMessage()

func (*ResultUpdatePriority) ProtoReflect

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

func (*ResultUpdatePriority) Reset

func (x *ResultUpdatePriority) Reset()

func (*ResultUpdatePriority) String

func (x *ResultUpdatePriority) String() string

type Task

type Task 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"`
	Place     Place  `protobuf:"varint,3,opt,name=place,proto3,enum=service.Place" json:"place,omitempty"`
	IsDeleted bool   `protobuf:"varint,4,opt,name=isDeleted,proto3" json:"isDeleted,omitempty"`
	IsDirty   bool   `protobuf:"varint,5,opt,name=isDirty,proto3" json:"isDirty,omitempty"`
	// contains filtered or unexported fields
}

func (*Task) Descriptor deprecated

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

Deprecated: Use Task.ProtoReflect.Descriptor instead.

func (*Task) GetId

func (x *Task) GetId() string

func (*Task) GetIsDeleted

func (x *Task) GetIsDeleted() bool

func (*Task) GetIsDirty

func (x *Task) GetIsDirty() bool

func (*Task) GetName

func (x *Task) GetName() string

func (*Task) GetPlace

func (x *Task) GetPlace() Place

func (*Task) ProtoMessage

func (*Task) ProtoMessage()

func (*Task) ProtoReflect

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

func (*Task) Reset

func (x *Task) Reset()

func (*Task) String

func (x *Task) String() string

type UnimplementedHashiraServer

type UnimplementedHashiraServer struct {
}

UnimplementedHashiraServer must be embedded to have forward compatible implementations.

func (UnimplementedHashiraServer) Create

func (UnimplementedHashiraServer) Delete

func (UnimplementedHashiraServer) PhysicalDelete

func (UnimplementedHashiraServer) Retrieve

func (UnimplementedHashiraServer) RetrievePriority

func (UnimplementedHashiraServer) Update

func (UnimplementedHashiraServer) UpdatePriority

type UnsafeHashiraServer

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

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

Jump to

Keyboard shortcuts

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