Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterFokusServiceServer(s grpc.ServiceRegistrar, srv FokusServiceServer)
- type Focus
- type Focus_FocusType
- func (Focus_FocusType) Descriptor() protoreflect.EnumDescriptor
- func (x Focus_FocusType) Enum() *Focus_FocusType
- func (Focus_FocusType) EnumDescriptor() ([]byte, []int)deprecated
- func (x Focus_FocusType) Number() protoreflect.EnumNumber
- func (x Focus_FocusType) String() string
- func (Focus_FocusType) Type() protoreflect.EnumType
- type FokusServiceClient
- type FokusServiceServer
- type GetFokusRequest
- type GetFokusResponse
- func (*GetFokusResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetFokusResponse) GetFocus() *Focus
- func (x *GetFokusResponse) GetGivenTime() int64
- func (*GetFokusResponse) ProtoMessage()
- func (x *GetFokusResponse) ProtoReflect() protoreflect.Message
- func (x *GetFokusResponse) Reset()
- func (x *GetFokusResponse) String() string
- type UnimplementedFokusServiceServer
- type UnsafeFokusServiceServer
Constants ¶
const (
FokusService_GetFokus_FullMethodName = "/fokus.FokusService/GetFokus"
)
Variables ¶
var ( Focus_FocusType_name = map[int32]string{ 0: "UNKNOWN", 1: "FOCUS_ON_RECORD_CLEANING", 2: "FOCUS_ON_HOME_TASKS", 3: "FOCUS_ON_NON_HOME_TASKS", 4: "FOCUS_ON_CODING_TASKS", 5: "FOCUS_ON_RECORD_COLLECTION_TASKS", 6: "FOCUS_ON_HIGHLIGHT", 7: "FOCUS_ON_RECORD_ADDER", 8: "FOCUS_ON_CLUSTER", 9: "FOCUS_ON_TASKS", 10: "FOCUS_ON_FOKUS", 11: "FOCUS_ON_ALL", } Focus_FocusType_value = map[string]int32{ "UNKNOWN": 0, "FOCUS_ON_RECORD_CLEANING": 1, "FOCUS_ON_HOME_TASKS": 2, "FOCUS_ON_NON_HOME_TASKS": 3, "FOCUS_ON_CODING_TASKS": 4, "FOCUS_ON_RECORD_COLLECTION_TASKS": 5, "FOCUS_ON_HIGHLIGHT": 6, "FOCUS_ON_RECORD_ADDER": 7, "FOCUS_ON_CLUSTER": 8, "FOCUS_ON_TASKS": 9, "FOCUS_ON_FOKUS": 10, "FOCUS_ON_ALL": 11, } )
Enum value maps for Focus_FocusType.
var File_fokus_proto protoreflect.FileDescriptor
var FokusService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "fokus.FokusService", HandlerType: (*FokusServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetFokus", Handler: _FokusService_GetFokus_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "fokus.proto", }
FokusService_ServiceDesc is the grpc.ServiceDesc for FokusService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterFokusServiceServer ¶
func RegisterFokusServiceServer(s grpc.ServiceRegistrar, srv FokusServiceServer)
Types ¶
type Focus ¶
type Focus struct {
Type Focus_FocusType `protobuf:"varint,1,opt,name=type,proto3,enum=fokus.Focus_FocusType" json:"type,omitempty"`
Detail string `protobuf:"bytes,2,opt,name=detail,proto3" json:"detail,omitempty"`
Link string `protobuf:"bytes,3,opt,name=link,proto3" json:"link,omitempty"`
// contains filtered or unexported fields
}
func (*Focus) Descriptor
deprecated
func (*Focus) GetType ¶
func (x *Focus) GetType() Focus_FocusType
func (*Focus) ProtoMessage ¶
func (*Focus) ProtoMessage()
func (*Focus) ProtoReflect ¶
func (x *Focus) ProtoReflect() protoreflect.Message
type Focus_FocusType ¶
type Focus_FocusType int32
const ( Focus_UNKNOWN Focus_FocusType = 0 Focus_FOCUS_ON_RECORD_CLEANING Focus_FocusType = 1 Focus_FOCUS_ON_HOME_TASKS Focus_FocusType = 2 Focus_FOCUS_ON_NON_HOME_TASKS Focus_FocusType = 3 Focus_FOCUS_ON_CODING_TASKS Focus_FocusType = 4 Focus_FOCUS_ON_RECORD_COLLECTION_TASKS Focus_FocusType = 5 Focus_FOCUS_ON_HIGHLIGHT Focus_FocusType = 6 Focus_FOCUS_ON_RECORD_ADDER Focus_FocusType = 7 Focus_FOCUS_ON_CLUSTER Focus_FocusType = 8 Focus_FOCUS_ON_TASKS Focus_FocusType = 9 Focus_FOCUS_ON_FOKUS Focus_FocusType = 10 Focus_FOCUS_ON_ALL Focus_FocusType = 11 )
func (Focus_FocusType) Descriptor ¶
func (Focus_FocusType) Descriptor() protoreflect.EnumDescriptor
func (Focus_FocusType) Enum ¶
func (x Focus_FocusType) Enum() *Focus_FocusType
func (Focus_FocusType) EnumDescriptor
deprecated
func (Focus_FocusType) EnumDescriptor() ([]byte, []int)
Deprecated: Use Focus_FocusType.Descriptor instead.
func (Focus_FocusType) Number ¶
func (x Focus_FocusType) Number() protoreflect.EnumNumber
func (Focus_FocusType) String ¶
func (x Focus_FocusType) String() string
func (Focus_FocusType) Type ¶
func (Focus_FocusType) Type() protoreflect.EnumType
type FokusServiceClient ¶
type FokusServiceClient interface {
GetFokus(ctx context.Context, in *GetFokusRequest, opts ...grpc.CallOption) (*GetFokusResponse, error)
}
FokusServiceClient is the client API for FokusService 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 NewFokusServiceClient ¶
func NewFokusServiceClient(cc grpc.ClientConnInterface) FokusServiceClient
type FokusServiceServer ¶
type FokusServiceServer interface {
GetFokus(context.Context, *GetFokusRequest) (*GetFokusResponse, error)
}
FokusServiceServer is the server API for FokusService service. All implementations should embed UnimplementedFokusServiceServer for forward compatibility
type GetFokusRequest ¶
type GetFokusRequest struct {
Label string `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty"`
// contains filtered or unexported fields
}
func (*GetFokusRequest) Descriptor
deprecated
func (*GetFokusRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetFokusRequest.ProtoReflect.Descriptor instead.
func (*GetFokusRequest) GetLabel ¶ added in v0.86.0
func (x *GetFokusRequest) GetLabel() string
func (*GetFokusRequest) ProtoMessage ¶
func (*GetFokusRequest) ProtoMessage()
func (*GetFokusRequest) ProtoReflect ¶
func (x *GetFokusRequest) ProtoReflect() protoreflect.Message
func (*GetFokusRequest) Reset ¶
func (x *GetFokusRequest) Reset()
func (*GetFokusRequest) String ¶
func (x *GetFokusRequest) String() string
type GetFokusResponse ¶
type GetFokusResponse struct {
Focus *Focus `protobuf:"bytes,1,opt,name=focus,proto3" json:"focus,omitempty"`
GivenTime int64 `protobuf:"varint,2,opt,name=given_time,json=givenTime,proto3" json:"given_time,omitempty"`
// contains filtered or unexported fields
}
func (*GetFokusResponse) Descriptor
deprecated
func (*GetFokusResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetFokusResponse.ProtoReflect.Descriptor instead.
func (*GetFokusResponse) GetFocus ¶
func (x *GetFokusResponse) GetFocus() *Focus
func (*GetFokusResponse) GetGivenTime ¶ added in v0.75.0
func (x *GetFokusResponse) GetGivenTime() int64
func (*GetFokusResponse) ProtoMessage ¶
func (*GetFokusResponse) ProtoMessage()
func (*GetFokusResponse) ProtoReflect ¶
func (x *GetFokusResponse) ProtoReflect() protoreflect.Message
func (*GetFokusResponse) Reset ¶
func (x *GetFokusResponse) Reset()
func (*GetFokusResponse) String ¶
func (x *GetFokusResponse) String() string
type UnimplementedFokusServiceServer ¶
type UnimplementedFokusServiceServer struct {
}
UnimplementedFokusServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedFokusServiceServer) GetFokus ¶
func (UnimplementedFokusServiceServer) GetFokus(context.Context, *GetFokusRequest) (*GetFokusResponse, error)
type UnsafeFokusServiceServer ¶
type UnsafeFokusServiceServer interface {
// contains filtered or unexported methods
}
UnsafeFokusServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to FokusServiceServer will result in compilation errors.