cloudslack

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CloudSlack_Connect_FullMethodName = "/cloudslack.CloudSlack/Connect"
)

Variables

View Source
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)

View Source
var File_cloudslack_proto protoreflect.FileDescriptor

Functions

func IsQuotaExceededErr added in v1.3.0

func IsQuotaExceededErr(err error) bool

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 CloudSlackError added in v1.3.0

type CloudSlackError struct {
	Msg     string              `json:"message"`
	ErrType CloudSlackErrorType `json:"type"`
}

func NewQuotaExceededError added in v1.3.0

func NewQuotaExceededError(msg string) *CloudSlackError

func (*CloudSlackError) Error added in v1.3.0

func (e *CloudSlackError) Error() string

func (*CloudSlackError) IsQuotaExceeded added in v1.3.0

func (e *CloudSlackError) IsQuotaExceeded() bool

type CloudSlackErrorType added in v1.3.0

type CloudSlackErrorType string
const (
	CloudSlackErrorQuotaExceeded CloudSlackErrorType = "QuotaExceeded"
)

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"`
	BotId      string `protobuf:"bytes,2,opt,name=botId,proto3" json:"botId,omitempty"`
	// contains filtered or unexported fields
}

func (*ConnectRequest) Descriptor deprecated

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

Deprecated: Use ConnectRequest.ProtoReflect.Descriptor instead.

func (*ConnectRequest) GetBotId added in v1.3.0

func (x *ConnectRequest) GetBotId() string

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"`
	// error is the error received from server
	Error []byte `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*ConnectResponse) Descriptor deprecated

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

Deprecated: Use ConnectResponse.ProtoReflect.Descriptor instead.

func (*ConnectResponse) GetError added in v1.3.0

func (x *ConnectResponse) GetError() []byte

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

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.

Jump to

Keyboard shortcuts

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