Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var CloudSlack_ServiceDesc = grpc.ServiceDesc{ ServiceName: "cloudslack.CloudSlack", HandlerType: (*CloudSlackServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "Connect", Handler: _CloudSlack_Connect_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "cloudslack.proto", }
CloudSlack_ServiceDesc is the grpc.ServiceDesc for CloudSlack service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_cloudslack_proto protoreflect.FileDescriptor
Functions ¶
func RegisterCloudSlackServer ¶
func RegisterCloudSlackServer(s grpc.ServiceRegistrar, srv CloudSlackServer)
Types ¶
type CloudSlackClient ¶
type CloudSlackClient interface {
Connect(ctx context.Context, opts ...grpc.CallOption) (CloudSlack_ConnectClient, error)
}
CloudSlackClient is the client API for CloudSlack 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 NewCloudSlackClient ¶
func NewCloudSlackClient(cc grpc.ClientConnInterface) CloudSlackClient
type CloudSlackServer ¶
type CloudSlackServer interface { Connect(CloudSlack_ConnectServer) error // contains filtered or unexported methods }
CloudSlackServer is the server API for CloudSlack service. All implementations must embed UnimplementedCloudSlackServer for forward compatibility
type CloudSlack_ConnectClient ¶
type CloudSlack_ConnectClient interface { Send(*ConnectRequest) error Recv() (*ConnectResponse, error) grpc.ClientStream }
type CloudSlack_ConnectServer ¶
type CloudSlack_ConnectServer interface { Send(*ConnectResponse) error Recv() (*ConnectRequest, error) grpc.ServerStream }
type ConnectRequest ¶
type ConnectRequest struct { InstanceId string `protobuf:"bytes,1,opt,name=instanceId,proto3" json:"instanceId,omitempty"` // contains filtered or unexported fields }
func (*ConnectRequest) Descriptor
deprecated
func (*ConnectRequest) Descriptor() ([]byte, []int)
Deprecated: Use ConnectRequest.ProtoReflect.Descriptor instead.
func (*ConnectRequest) GetInstanceId ¶
func (x *ConnectRequest) GetInstanceId() string
func (*ConnectRequest) ProtoMessage ¶
func (*ConnectRequest) ProtoMessage()
func (*ConnectRequest) ProtoReflect ¶
func (x *ConnectRequest) ProtoReflect() protoreflect.Message
func (*ConnectRequest) Reset ¶
func (x *ConnectRequest) Reset()
func (*ConnectRequest) String ¶
func (x *ConnectRequest) String() string
type ConnectResponse ¶
type ConnectResponse struct { // event is the event received from slack slackevents.EventsAPIEvent Event []byte `protobuf:"bytes,1,opt,name=event,proto3" json:"event,omitempty"` // contains filtered or unexported fields }
func (*ConnectResponse) Descriptor
deprecated
func (*ConnectResponse) Descriptor() ([]byte, []int)
Deprecated: Use ConnectResponse.ProtoReflect.Descriptor instead.
func (*ConnectResponse) GetEvent ¶
func (x *ConnectResponse) GetEvent() []byte
func (*ConnectResponse) ProtoMessage ¶
func (*ConnectResponse) ProtoMessage()
func (*ConnectResponse) ProtoReflect ¶
func (x *ConnectResponse) ProtoReflect() protoreflect.Message
func (*ConnectResponse) Reset ¶
func (x *ConnectResponse) Reset()
func (*ConnectResponse) String ¶
func (x *ConnectResponse) String() string
type UnimplementedCloudSlackServer ¶
type UnimplementedCloudSlackServer struct { }
UnimplementedCloudSlackServer must be embedded to have forward compatible implementations.
func (UnimplementedCloudSlackServer) Connect ¶
func (UnimplementedCloudSlackServer) Connect(CloudSlack_ConnectServer) error
type UnsafeCloudSlackServer ¶
type UnsafeCloudSlackServer interface {
// contains filtered or unexported methods
}
UnsafeCloudSlackServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CloudSlackServer will result in compilation errors.