Documentation ¶
Index ¶
- Variables
- func RegisterHashiraServer(s grpc.ServiceRegistrar, srv HashiraServer)
- type CommandCreate
- type CommandDelete
- type CommandPhysicalDelete
- func (*CommandPhysicalDelete) Descriptor() ([]byte, []int)deprecated
- func (x *CommandPhysicalDelete) GetId() string
- func (*CommandPhysicalDelete) ProtoMessage()
- func (x *CommandPhysicalDelete) ProtoReflect() protoreflect.Message
- func (x *CommandPhysicalDelete) Reset()
- func (x *CommandPhysicalDelete) String() string
- type CommandRetrieve
- type CommandRetrievePriority
- type CommandUpdate
- type CommandUpdatePriority
- func (*CommandUpdatePriority) Descriptor() ([]byte, []int)deprecated
- func (x *CommandUpdatePriority) GetPriorities() map[string]*Priority
- func (*CommandUpdatePriority) ProtoMessage()
- func (x *CommandUpdatePriority) ProtoReflect() protoreflect.Message
- func (x *CommandUpdatePriority) Reset()
- func (x *CommandUpdatePriority) String() string
- type HashiraClient
- type HashiraServer
- type Place
- type Priority
- type ResultCreate
- type ResultDelete
- type ResultPhysicalDelete
- type ResultRetrieve
- type ResultRetrievePriority
- func (*ResultRetrievePriority) Descriptor() ([]byte, []int)deprecated
- func (x *ResultRetrievePriority) GetPriorities() map[string]*Priority
- func (*ResultRetrievePriority) ProtoMessage()
- func (x *ResultRetrievePriority) ProtoReflect() protoreflect.Message
- func (x *ResultRetrievePriority) Reset()
- func (x *ResultRetrievePriority) String() string
- type ResultUpdate
- type ResultUpdatePriority
- func (*ResultUpdatePriority) Descriptor() ([]byte, []int)deprecated
- func (x *ResultUpdatePriority) GetPriorities() map[string]*Priority
- func (*ResultUpdatePriority) ProtoMessage()
- func (x *ResultUpdatePriority) ProtoReflect() protoreflect.Message
- func (x *ResultUpdatePriority) Reset()
- func (x *ResultUpdatePriority) String() string
- type Task
- func (*Task) Descriptor() ([]byte, []int)deprecated
- func (x *Task) GetId() string
- func (x *Task) GetIsDeleted() bool
- func (x *Task) GetIsDirty() bool
- func (x *Task) GetName() string
- func (x *Task) GetPlace() Place
- func (*Task) ProtoMessage()
- func (x *Task) ProtoReflect() protoreflect.Message
- func (x *Task) Reset()
- func (x *Task) String() string
- type UnimplementedHashiraServer
- func (UnimplementedHashiraServer) Create(context.Context, *CommandCreate) (*ResultCreate, error)
- func (UnimplementedHashiraServer) Delete(context.Context, *CommandDelete) (*ResultDelete, error)
- func (UnimplementedHashiraServer) PhysicalDelete(context.Context, *CommandPhysicalDelete) (*ResultPhysicalDelete, error)
- func (UnimplementedHashiraServer) Retrieve(context.Context, *CommandRetrieve) (*ResultRetrieve, error)
- func (UnimplementedHashiraServer) RetrievePriority(context.Context, *CommandRetrievePriority) (*ResultRetrievePriority, error)
- func (UnimplementedHashiraServer) Update(context.Context, *CommandUpdate) (*ResultUpdate, error)
- func (UnimplementedHashiraServer) UpdatePriority(context.Context, *CommandUpdatePriority) (*ResultUpdatePriority, error)
- type UnsafeHashiraServer
Constants ¶
This section is empty.
Variables ¶
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.
var File_hashira_proto protoreflect.FileDescriptor
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 ¶
type HashiraServer interface { Create(context.Context, *CommandCreate) (*ResultCreate, error) Update(context.Context, *CommandUpdate) (*ResultUpdate, error) Delete(context.Context, *CommandDelete) (*ResultDelete, error) PhysicalDelete(context.Context, *CommandPhysicalDelete) (*ResultPhysicalDelete, error) Retrieve(context.Context, *CommandRetrieve) (*ResultRetrieve, error) UpdatePriority(context.Context, *CommandUpdatePriority) (*ResultUpdatePriority, error) RetrievePriority(context.Context, *CommandRetrievePriority) (*ResultRetrievePriority, error) // contains filtered or unexported methods }
HashiraServer is the server API for Hashira service. All implementations must embed UnimplementedHashiraServer for forward compatibility
type Place ¶
type Place int32
func (Place) Descriptor ¶
func (Place) Descriptor() protoreflect.EnumDescriptor
func (Place) EnumDescriptor
deprecated
func (Place) Number ¶
func (x Place) Number() protoreflect.EnumNumber
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) GetIsDirty ¶
func (*Priority) ProtoMessage ¶
func (*Priority) ProtoMessage()
func (*Priority) ProtoReflect ¶
func (x *Priority) ProtoReflect() protoreflect.Message
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) GetIsDeleted ¶
func (*Task) GetIsDirty ¶
func (*Task) ProtoMessage ¶
func (*Task) ProtoMessage()
func (*Task) ProtoReflect ¶
func (x *Task) ProtoReflect() protoreflect.Message
type UnimplementedHashiraServer ¶
type UnimplementedHashiraServer struct { }
UnimplementedHashiraServer must be embedded to have forward compatible implementations.
func (UnimplementedHashiraServer) Create ¶
func (UnimplementedHashiraServer) Create(context.Context, *CommandCreate) (*ResultCreate, error)
func (UnimplementedHashiraServer) Delete ¶
func (UnimplementedHashiraServer) Delete(context.Context, *CommandDelete) (*ResultDelete, error)
func (UnimplementedHashiraServer) PhysicalDelete ¶
func (UnimplementedHashiraServer) PhysicalDelete(context.Context, *CommandPhysicalDelete) (*ResultPhysicalDelete, error)
func (UnimplementedHashiraServer) Retrieve ¶
func (UnimplementedHashiraServer) Retrieve(context.Context, *CommandRetrieve) (*ResultRetrieve, error)
func (UnimplementedHashiraServer) RetrievePriority ¶
func (UnimplementedHashiraServer) RetrievePriority(context.Context, *CommandRetrievePriority) (*ResultRetrievePriority, error)
func (UnimplementedHashiraServer) Update ¶
func (UnimplementedHashiraServer) Update(context.Context, *CommandUpdate) (*ResultUpdate, error)
func (UnimplementedHashiraServer) UpdatePriority ¶
func (UnimplementedHashiraServer) UpdatePriority(context.Context, *CommandUpdatePriority) (*ResultUpdatePriority, error)
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.