Documentation
¶
Index ¶
- Variables
- func RegisterMuscatServer(s grpc.ServiceRegistrar, srv MuscatServer)
- type CopyRequest
- type CopyResponse
- type GetInputMethodRequest
- type GetInputMethodResponse
- func (*GetInputMethodResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetInputMethodResponse) GetId() string
- func (*GetInputMethodResponse) ProtoMessage()
- func (x *GetInputMethodResponse) ProtoReflect() protoreflect.Message
- func (x *GetInputMethodResponse) Reset()
- func (x *GetInputMethodResponse) String() string
- type HealthRequest
- type HealthResponse
- type MuscatClient
- type MuscatServer
- type Muscat_CopyClient
- type Muscat_CopyServer
- type Muscat_PasteClient
- type Muscat_PasteServer
- type OpenRequest
- type OpenResponse
- type PasteRequest
- type PasteResponse
- type SetInputMethodRequest
- func (*SetInputMethodRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SetInputMethodRequest) GetId() string
- func (*SetInputMethodRequest) ProtoMessage()
- func (x *SetInputMethodRequest) ProtoReflect() protoreflect.Message
- func (x *SetInputMethodRequest) Reset()
- func (x *SetInputMethodRequest) String() string
- type SetInputMethodResponse
- func (*SetInputMethodResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SetInputMethodResponse) GetBefore() string
- func (*SetInputMethodResponse) ProtoMessage()
- func (x *SetInputMethodResponse) ProtoReflect() protoreflect.Message
- func (x *SetInputMethodResponse) Reset()
- func (x *SetInputMethodResponse) String() string
- type UnimplementedMuscatServer
- func (UnimplementedMuscatServer) Copy(Muscat_CopyServer) error
- func (UnimplementedMuscatServer) GetInputMethod(context.Context, *GetInputMethodRequest) (*GetInputMethodResponse, error)
- func (UnimplementedMuscatServer) Health(context.Context, *HealthRequest) (*HealthResponse, error)
- func (UnimplementedMuscatServer) Open(context.Context, *OpenRequest) (*OpenResponse, error)
- func (UnimplementedMuscatServer) Paste(*PasteRequest, Muscat_PasteServer) error
- func (UnimplementedMuscatServer) SetInputMethod(context.Context, *SetInputMethodRequest) (*SetInputMethodResponse, error)
- type UnsafeMuscatServer
Constants ¶
This section is empty.
Variables ¶
var File_muscat_proto protoreflect.FileDescriptor
var Muscat_ServiceDesc = grpc.ServiceDesc{ ServiceName: "dev.warashi.muscat.Muscat", HandlerType: (*MuscatServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Health", Handler: _Muscat_Health_Handler, }, { MethodName: "Open", Handler: _Muscat_Open_Handler, }, { MethodName: "GetInputMethod", Handler: _Muscat_GetInputMethod_Handler, }, { MethodName: "SetInputMethod", Handler: _Muscat_SetInputMethod_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "Copy", Handler: _Muscat_Copy_Handler, ClientStreams: true, }, { StreamName: "Paste", Handler: _Muscat_Paste_Handler, ServerStreams: true, }, }, Metadata: "muscat.proto", }
Muscat_ServiceDesc is the grpc.ServiceDesc for Muscat service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterMuscatServer ¶
func RegisterMuscatServer(s grpc.ServiceRegistrar, srv MuscatServer)
Types ¶
type CopyRequest ¶
type CopyRequest struct { Body []byte `protobuf:"bytes,1,opt,name=Body,proto3" json:"Body,omitempty"` // contains filtered or unexported fields }
func (*CopyRequest) Descriptor
deprecated
func (*CopyRequest) Descriptor() ([]byte, []int)
Deprecated: Use CopyRequest.ProtoReflect.Descriptor instead.
func (*CopyRequest) GetBody ¶
func (x *CopyRequest) GetBody() []byte
func (*CopyRequest) ProtoMessage ¶
func (*CopyRequest) ProtoMessage()
func (*CopyRequest) ProtoReflect ¶
func (x *CopyRequest) ProtoReflect() protoreflect.Message
func (*CopyRequest) Reset ¶
func (x *CopyRequest) Reset()
func (*CopyRequest) String ¶
func (x *CopyRequest) String() string
type CopyResponse ¶
type CopyResponse struct {
// contains filtered or unexported fields
}
func (*CopyResponse) Descriptor
deprecated
func (*CopyResponse) Descriptor() ([]byte, []int)
Deprecated: Use CopyResponse.ProtoReflect.Descriptor instead.
func (*CopyResponse) ProtoMessage ¶
func (*CopyResponse) ProtoMessage()
func (*CopyResponse) ProtoReflect ¶
func (x *CopyResponse) ProtoReflect() protoreflect.Message
func (*CopyResponse) Reset ¶
func (x *CopyResponse) Reset()
func (*CopyResponse) String ¶
func (x *CopyResponse) String() string
type GetInputMethodRequest ¶ added in v1.3.0
type GetInputMethodRequest struct {
// contains filtered or unexported fields
}
func (*GetInputMethodRequest) Descriptor
deprecated
added in
v1.3.0
func (*GetInputMethodRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetInputMethodRequest.ProtoReflect.Descriptor instead.
func (*GetInputMethodRequest) ProtoMessage ¶ added in v1.3.0
func (*GetInputMethodRequest) ProtoMessage()
func (*GetInputMethodRequest) ProtoReflect ¶ added in v1.3.0
func (x *GetInputMethodRequest) ProtoReflect() protoreflect.Message
func (*GetInputMethodRequest) Reset ¶ added in v1.3.0
func (x *GetInputMethodRequest) Reset()
func (*GetInputMethodRequest) String ¶ added in v1.3.0
func (x *GetInputMethodRequest) String() string
type GetInputMethodResponse ¶ added in v1.3.0
type GetInputMethodResponse struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetInputMethodResponse) Descriptor
deprecated
added in
v1.3.0
func (*GetInputMethodResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetInputMethodResponse.ProtoReflect.Descriptor instead.
func (*GetInputMethodResponse) GetId ¶ added in v1.3.0
func (x *GetInputMethodResponse) GetId() string
func (*GetInputMethodResponse) ProtoMessage ¶ added in v1.3.0
func (*GetInputMethodResponse) ProtoMessage()
func (*GetInputMethodResponse) ProtoReflect ¶ added in v1.3.0
func (x *GetInputMethodResponse) ProtoReflect() protoreflect.Message
func (*GetInputMethodResponse) Reset ¶ added in v1.3.0
func (x *GetInputMethodResponse) Reset()
func (*GetInputMethodResponse) String ¶ added in v1.3.0
func (x *GetInputMethodResponse) String() string
type HealthRequest ¶ added in v1.2.0
type HealthRequest struct {
// contains filtered or unexported fields
}
func (*HealthRequest) Descriptor
deprecated
added in
v1.2.0
func (*HealthRequest) Descriptor() ([]byte, []int)
Deprecated: Use HealthRequest.ProtoReflect.Descriptor instead.
func (*HealthRequest) ProtoMessage ¶ added in v1.2.0
func (*HealthRequest) ProtoMessage()
func (*HealthRequest) ProtoReflect ¶ added in v1.2.0
func (x *HealthRequest) ProtoReflect() protoreflect.Message
func (*HealthRequest) Reset ¶ added in v1.2.0
func (x *HealthRequest) Reset()
func (*HealthRequest) String ¶ added in v1.2.0
func (x *HealthRequest) String() string
type HealthResponse ¶ added in v1.2.0
type HealthResponse struct { Pid int64 `protobuf:"varint,1,opt,name=pid,proto3" json:"pid,omitempty"` // contains filtered or unexported fields }
func (*HealthResponse) Descriptor
deprecated
added in
v1.2.0
func (*HealthResponse) Descriptor() ([]byte, []int)
Deprecated: Use HealthResponse.ProtoReflect.Descriptor instead.
func (*HealthResponse) GetPid ¶ added in v1.2.0
func (x *HealthResponse) GetPid() int64
func (*HealthResponse) ProtoMessage ¶ added in v1.2.0
func (*HealthResponse) ProtoMessage()
func (*HealthResponse) ProtoReflect ¶ added in v1.2.0
func (x *HealthResponse) ProtoReflect() protoreflect.Message
func (*HealthResponse) Reset ¶ added in v1.2.0
func (x *HealthResponse) Reset()
func (*HealthResponse) String ¶ added in v1.2.0
func (x *HealthResponse) String() string
type MuscatClient ¶
type MuscatClient interface { Health(ctx context.Context, in *HealthRequest, opts ...grpc.CallOption) (*HealthResponse, error) Open(ctx context.Context, in *OpenRequest, opts ...grpc.CallOption) (*OpenResponse, error) Copy(ctx context.Context, opts ...grpc.CallOption) (Muscat_CopyClient, error) Paste(ctx context.Context, in *PasteRequest, opts ...grpc.CallOption) (Muscat_PasteClient, error) GetInputMethod(ctx context.Context, in *GetInputMethodRequest, opts ...grpc.CallOption) (*GetInputMethodResponse, error) SetInputMethod(ctx context.Context, in *SetInputMethodRequest, opts ...grpc.CallOption) (*SetInputMethodResponse, error) }
MuscatClient is the client API for Muscat 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 NewMuscatClient ¶
func NewMuscatClient(cc grpc.ClientConnInterface) MuscatClient
type MuscatServer ¶
type MuscatServer interface { Health(context.Context, *HealthRequest) (*HealthResponse, error) Open(context.Context, *OpenRequest) (*OpenResponse, error) Copy(Muscat_CopyServer) error Paste(*PasteRequest, Muscat_PasteServer) error GetInputMethod(context.Context, *GetInputMethodRequest) (*GetInputMethodResponse, error) SetInputMethod(context.Context, *SetInputMethodRequest) (*SetInputMethodResponse, error) // contains filtered or unexported methods }
MuscatServer is the server API for Muscat service. All implementations must embed UnimplementedMuscatServer for forward compatibility
type Muscat_CopyClient ¶
type Muscat_CopyClient interface { Send(*CopyRequest) error CloseAndRecv() (*CopyResponse, error) grpc.ClientStream }
type Muscat_CopyServer ¶
type Muscat_CopyServer interface { SendAndClose(*CopyResponse) error Recv() (*CopyRequest, error) grpc.ServerStream }
type Muscat_PasteClient ¶
type Muscat_PasteClient interface { Recv() (*PasteResponse, error) grpc.ClientStream }
type Muscat_PasteServer ¶
type Muscat_PasteServer interface { Send(*PasteResponse) error grpc.ServerStream }
type OpenRequest ¶
type OpenRequest struct { Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"` // contains filtered or unexported fields }
func (*OpenRequest) Descriptor
deprecated
func (*OpenRequest) Descriptor() ([]byte, []int)
Deprecated: Use OpenRequest.ProtoReflect.Descriptor instead.
func (*OpenRequest) GetUri ¶
func (x *OpenRequest) GetUri() string
func (*OpenRequest) ProtoMessage ¶
func (*OpenRequest) ProtoMessage()
func (*OpenRequest) ProtoReflect ¶
func (x *OpenRequest) ProtoReflect() protoreflect.Message
func (*OpenRequest) Reset ¶
func (x *OpenRequest) Reset()
func (*OpenRequest) String ¶
func (x *OpenRequest) String() string
type OpenResponse ¶
type OpenResponse struct {
// contains filtered or unexported fields
}
func (*OpenResponse) Descriptor
deprecated
func (*OpenResponse) Descriptor() ([]byte, []int)
Deprecated: Use OpenResponse.ProtoReflect.Descriptor instead.
func (*OpenResponse) ProtoMessage ¶
func (*OpenResponse) ProtoMessage()
func (*OpenResponse) ProtoReflect ¶
func (x *OpenResponse) ProtoReflect() protoreflect.Message
func (*OpenResponse) Reset ¶
func (x *OpenResponse) Reset()
func (*OpenResponse) String ¶
func (x *OpenResponse) String() string
type PasteRequest ¶
type PasteRequest struct {
// contains filtered or unexported fields
}
func (*PasteRequest) Descriptor
deprecated
func (*PasteRequest) Descriptor() ([]byte, []int)
Deprecated: Use PasteRequest.ProtoReflect.Descriptor instead.
func (*PasteRequest) ProtoMessage ¶
func (*PasteRequest) ProtoMessage()
func (*PasteRequest) ProtoReflect ¶
func (x *PasteRequest) ProtoReflect() protoreflect.Message
func (*PasteRequest) Reset ¶
func (x *PasteRequest) Reset()
func (*PasteRequest) String ¶
func (x *PasteRequest) String() string
type PasteResponse ¶
type PasteResponse struct { Body []byte `protobuf:"bytes,1,opt,name=Body,proto3" json:"Body,omitempty"` // contains filtered or unexported fields }
func (*PasteResponse) Descriptor
deprecated
func (*PasteResponse) Descriptor() ([]byte, []int)
Deprecated: Use PasteResponse.ProtoReflect.Descriptor instead.
func (*PasteResponse) GetBody ¶
func (x *PasteResponse) GetBody() []byte
func (*PasteResponse) ProtoMessage ¶
func (*PasteResponse) ProtoMessage()
func (*PasteResponse) ProtoReflect ¶
func (x *PasteResponse) ProtoReflect() protoreflect.Message
func (*PasteResponse) Reset ¶
func (x *PasteResponse) Reset()
func (*PasteResponse) String ¶
func (x *PasteResponse) String() string
type SetInputMethodRequest ¶ added in v1.3.0
type SetInputMethodRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*SetInputMethodRequest) Descriptor
deprecated
added in
v1.3.0
func (*SetInputMethodRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetInputMethodRequest.ProtoReflect.Descriptor instead.
func (*SetInputMethodRequest) GetId ¶ added in v1.3.0
func (x *SetInputMethodRequest) GetId() string
func (*SetInputMethodRequest) ProtoMessage ¶ added in v1.3.0
func (*SetInputMethodRequest) ProtoMessage()
func (*SetInputMethodRequest) ProtoReflect ¶ added in v1.3.0
func (x *SetInputMethodRequest) ProtoReflect() protoreflect.Message
func (*SetInputMethodRequest) Reset ¶ added in v1.3.0
func (x *SetInputMethodRequest) Reset()
func (*SetInputMethodRequest) String ¶ added in v1.3.0
func (x *SetInputMethodRequest) String() string
type SetInputMethodResponse ¶ added in v1.3.0
type SetInputMethodResponse struct { Before string `protobuf:"bytes,1,opt,name=before,proto3" json:"before,omitempty"` // contains filtered or unexported fields }
func (*SetInputMethodResponse) Descriptor
deprecated
added in
v1.3.0
func (*SetInputMethodResponse) Descriptor() ([]byte, []int)
Deprecated: Use SetInputMethodResponse.ProtoReflect.Descriptor instead.
func (*SetInputMethodResponse) GetBefore ¶ added in v1.5.0
func (x *SetInputMethodResponse) GetBefore() string
func (*SetInputMethodResponse) ProtoMessage ¶ added in v1.3.0
func (*SetInputMethodResponse) ProtoMessage()
func (*SetInputMethodResponse) ProtoReflect ¶ added in v1.3.0
func (x *SetInputMethodResponse) ProtoReflect() protoreflect.Message
func (*SetInputMethodResponse) Reset ¶ added in v1.3.0
func (x *SetInputMethodResponse) Reset()
func (*SetInputMethodResponse) String ¶ added in v1.3.0
func (x *SetInputMethodResponse) String() string
type UnimplementedMuscatServer ¶
type UnimplementedMuscatServer struct { }
UnimplementedMuscatServer must be embedded to have forward compatible implementations.
func (UnimplementedMuscatServer) Copy ¶
func (UnimplementedMuscatServer) Copy(Muscat_CopyServer) error
func (UnimplementedMuscatServer) GetInputMethod ¶ added in v1.3.0
func (UnimplementedMuscatServer) GetInputMethod(context.Context, *GetInputMethodRequest) (*GetInputMethodResponse, error)
func (UnimplementedMuscatServer) Health ¶ added in v1.2.0
func (UnimplementedMuscatServer) Health(context.Context, *HealthRequest) (*HealthResponse, error)
func (UnimplementedMuscatServer) Open ¶
func (UnimplementedMuscatServer) Open(context.Context, *OpenRequest) (*OpenResponse, error)
func (UnimplementedMuscatServer) Paste ¶
func (UnimplementedMuscatServer) Paste(*PasteRequest, Muscat_PasteServer) error
func (UnimplementedMuscatServer) SetInputMethod ¶ added in v1.3.0
func (UnimplementedMuscatServer) SetInputMethod(context.Context, *SetInputMethodRequest) (*SetInputMethodResponse, error)
type UnsafeMuscatServer ¶
type UnsafeMuscatServer interface {
// contains filtered or unexported methods
}
UnsafeMuscatServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MuscatServer will result in compilation errors.