Documentation ¶
Overview ¶
Code generated by protoc-gen-stmp. DO NOT EDIT. source: examples/quick_start/quick_start_pb/quick_start.proto
Index ¶
- Variables
- func STMPAttachRoomEventsListener(c *stmp.Client, s STMPRoomEventsListener)
- func STMPDetachRoomEventsListener(c *stmp.Client, s STMPRoomEventsListener)
- func STMPRegisterRoomServiceServer(srv *stmp.Server, s STMPRoomServiceServer)
- type ExitRoomInput
- func (*ExitRoomInput) Descriptor() ([]byte, []int)
- func (m *ExitRoomInput) Marshal() (dAtA []byte, err error)
- func (m *ExitRoomInput) MarshalTo(dAtA []byte) (int, error)
- func (m *ExitRoomInput) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ExitRoomInput) ProtoMessage()
- func (m *ExitRoomInput) Reset()
- func (m *ExitRoomInput) Size() (n int)
- func (m *ExitRoomInput) String() string
- func (m *ExitRoomInput) Unmarshal(dAtA []byte) error
- func (m *ExitRoomInput) XXX_DiscardUnknown()
- func (m *ExitRoomInput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ExitRoomInput) XXX_Merge(src proto.Message)
- func (m *ExitRoomInput) XXX_Size() int
- func (m *ExitRoomInput) XXX_Unmarshal(b []byte) error
- type JoinRoomInput
- func (*JoinRoomInput) Descriptor() ([]byte, []int)
- func (m *JoinRoomInput) Marshal() (dAtA []byte, err error)
- func (m *JoinRoomInput) MarshalTo(dAtA []byte) (int, error)
- func (m *JoinRoomInput) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*JoinRoomInput) ProtoMessage()
- func (m *JoinRoomInput) Reset()
- func (m *JoinRoomInput) Size() (n int)
- func (m *JoinRoomInput) String() string
- func (m *JoinRoomInput) Unmarshal(dAtA []byte) error
- func (m *JoinRoomInput) XXX_DiscardUnknown()
- func (m *JoinRoomInput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *JoinRoomInput) XXX_Merge(src proto.Message)
- func (m *JoinRoomInput) XXX_Size() int
- func (m *JoinRoomInput) XXX_Unmarshal(b []byte) error
- type RoomModel
- func (*RoomModel) Descriptor() ([]byte, []int)
- func (m *RoomModel) Marshal() (dAtA []byte, err error)
- func (m *RoomModel) MarshalTo(dAtA []byte) (int, error)
- func (m *RoomModel) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RoomModel) ProtoMessage()
- func (m *RoomModel) Reset()
- func (m *RoomModel) Size() (n int)
- func (m *RoomModel) String() string
- func (m *RoomModel) Unmarshal(dAtA []byte) error
- func (m *RoomModel) XXX_DiscardUnknown()
- func (m *RoomModel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RoomModel) XXX_Merge(src proto.Message)
- func (m *RoomModel) XXX_Size() int
- func (m *RoomModel) XXX_Unmarshal(b []byte) error
- type STMPRoomEventsBroadcaster
- func (s STMPRoomEventsBroadcaster) UserExit(ctx context.Context, in *UserExitEvent, conn *stmp.Conn, ...) error
- func (s STMPRoomEventsBroadcaster) UserExitToAll(ctx context.Context, in *UserExitEvent, srv *stmp.Server, ...)
- func (s STMPRoomEventsBroadcaster) UserExitToList(ctx context.Context, in *UserExitEvent, conns ...*stmp.Conn)
- func (s STMPRoomEventsBroadcaster) UserExitToSet(ctx context.Context, in *UserExitEvent, conns stmp.ConnSet, ...)
- func (s STMPRoomEventsBroadcaster) UserJoin(ctx context.Context, in *UserJoinEvent, conn *stmp.Conn, ...) error
- func (s STMPRoomEventsBroadcaster) UserJoinToAll(ctx context.Context, in *UserJoinEvent, srv *stmp.Server, ...)
- func (s STMPRoomEventsBroadcaster) UserJoinToList(ctx context.Context, in *UserJoinEvent, conns ...*stmp.Conn)
- func (s STMPRoomEventsBroadcaster) UserJoinToSet(ctx context.Context, in *UserJoinEvent, conns stmp.ConnSet, ...)
- type STMPRoomEventsListener
- type STMPRoomServiceClient
- type STMPRoomServiceServer
- type UserExitEvent
- func (*UserExitEvent) Descriptor() ([]byte, []int)
- func (m *UserExitEvent) Marshal() (dAtA []byte, err error)
- func (m *UserExitEvent) MarshalTo(dAtA []byte) (int, error)
- func (m *UserExitEvent) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*UserExitEvent) ProtoMessage()
- func (m *UserExitEvent) Reset()
- func (m *UserExitEvent) Size() (n int)
- func (m *UserExitEvent) String() string
- func (m *UserExitEvent) Unmarshal(dAtA []byte) error
- func (m *UserExitEvent) XXX_DiscardUnknown()
- func (m *UserExitEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UserExitEvent) XXX_Merge(src proto.Message)
- func (m *UserExitEvent) XXX_Size() int
- func (m *UserExitEvent) XXX_Unmarshal(b []byte) error
- type UserJoinEvent
- func (*UserJoinEvent) Descriptor() ([]byte, []int)
- func (m *UserJoinEvent) Marshal() (dAtA []byte, err error)
- func (m *UserJoinEvent) MarshalTo(dAtA []byte) (int, error)
- func (m *UserJoinEvent) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*UserJoinEvent) ProtoMessage()
- func (m *UserJoinEvent) Reset()
- func (m *UserJoinEvent) Size() (n int)
- func (m *UserJoinEvent) String() string
- func (m *UserJoinEvent) Unmarshal(dAtA []byte) error
- func (m *UserJoinEvent) XXX_DiscardUnknown()
- func (m *UserJoinEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UserJoinEvent) XXX_Merge(src proto.Message)
- func (m *UserJoinEvent) XXX_Size() int
- func (m *UserJoinEvent) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func STMPAttachRoomEventsListener ¶
func STMPAttachRoomEventsListener(c *stmp.Client, s STMPRoomEventsListener)
func STMPDetachRoomEventsListener ¶
func STMPDetachRoomEventsListener(c *stmp.Client, s STMPRoomEventsListener)
func STMPRegisterRoomServiceServer ¶
func STMPRegisterRoomServiceServer(srv *stmp.Server, s STMPRoomServiceServer)
Types ¶
type ExitRoomInput ¶
type ExitRoomInput struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ExitRoomInput) Descriptor ¶
func (*ExitRoomInput) Descriptor() ([]byte, []int)
func (*ExitRoomInput) Marshal ¶
func (m *ExitRoomInput) Marshal() (dAtA []byte, err error)
func (*ExitRoomInput) MarshalToSizedBuffer ¶
func (m *ExitRoomInput) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ExitRoomInput) ProtoMessage ¶
func (*ExitRoomInput) ProtoMessage()
func (*ExitRoomInput) Reset ¶
func (m *ExitRoomInput) Reset()
func (*ExitRoomInput) Size ¶
func (m *ExitRoomInput) Size() (n int)
func (*ExitRoomInput) String ¶
func (m *ExitRoomInput) String() string
func (*ExitRoomInput) Unmarshal ¶
func (m *ExitRoomInput) Unmarshal(dAtA []byte) error
func (*ExitRoomInput) XXX_DiscardUnknown ¶
func (m *ExitRoomInput) XXX_DiscardUnknown()
func (*ExitRoomInput) XXX_Marshal ¶
func (m *ExitRoomInput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ExitRoomInput) XXX_Merge ¶
func (m *ExitRoomInput) XXX_Merge(src proto.Message)
func (*ExitRoomInput) XXX_Size ¶
func (m *ExitRoomInput) XXX_Size() int
func (*ExitRoomInput) XXX_Unmarshal ¶
func (m *ExitRoomInput) XXX_Unmarshal(b []byte) error
type JoinRoomInput ¶
type JoinRoomInput struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*JoinRoomInput) Descriptor ¶
func (*JoinRoomInput) Descriptor() ([]byte, []int)
func (*JoinRoomInput) Marshal ¶
func (m *JoinRoomInput) Marshal() (dAtA []byte, err error)
func (*JoinRoomInput) MarshalToSizedBuffer ¶
func (m *JoinRoomInput) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*JoinRoomInput) ProtoMessage ¶
func (*JoinRoomInput) ProtoMessage()
func (*JoinRoomInput) Reset ¶
func (m *JoinRoomInput) Reset()
func (*JoinRoomInput) Size ¶
func (m *JoinRoomInput) Size() (n int)
func (*JoinRoomInput) String ¶
func (m *JoinRoomInput) String() string
func (*JoinRoomInput) Unmarshal ¶
func (m *JoinRoomInput) Unmarshal(dAtA []byte) error
func (*JoinRoomInput) XXX_DiscardUnknown ¶
func (m *JoinRoomInput) XXX_DiscardUnknown()
func (*JoinRoomInput) XXX_Marshal ¶
func (m *JoinRoomInput) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*JoinRoomInput) XXX_Merge ¶
func (m *JoinRoomInput) XXX_Merge(src proto.Message)
func (*JoinRoomInput) XXX_Size ¶
func (m *JoinRoomInput) XXX_Size() int
func (*JoinRoomInput) XXX_Unmarshal ¶
func (m *JoinRoomInput) XXX_Unmarshal(b []byte) error
type RoomModel ¶
type RoomModel struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Users []string `protobuf:"bytes,2,rep,name=users,proto3" json:"users,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RoomModel) Descriptor ¶
func (*RoomModel) MarshalToSizedBuffer ¶
func (*RoomModel) ProtoMessage ¶
func (*RoomModel) ProtoMessage()
func (*RoomModel) XXX_DiscardUnknown ¶
func (m *RoomModel) XXX_DiscardUnknown()
func (*RoomModel) XXX_Marshal ¶
func (*RoomModel) XXX_Unmarshal ¶
type STMPRoomEventsBroadcaster ¶
type STMPRoomEventsBroadcaster struct{}
func (STMPRoomEventsBroadcaster) UserExit ¶
func (s STMPRoomEventsBroadcaster) UserExit(ctx context.Context, in *UserExitEvent, conn *stmp.Conn, opts ...*stmp.CallOptions) error
func (STMPRoomEventsBroadcaster) UserExitToAll ¶
func (s STMPRoomEventsBroadcaster) UserExitToAll(ctx context.Context, in *UserExitEvent, srv *stmp.Server, filter ...stmp.ConnFilter)
func (STMPRoomEventsBroadcaster) UserExitToList ¶
func (s STMPRoomEventsBroadcaster) UserExitToList(ctx context.Context, in *UserExitEvent, conns ...*stmp.Conn)
func (STMPRoomEventsBroadcaster) UserExitToSet ¶
func (s STMPRoomEventsBroadcaster) UserExitToSet(ctx context.Context, in *UserExitEvent, conns stmp.ConnSet, exclude ...*stmp.Conn)
func (STMPRoomEventsBroadcaster) UserJoin ¶
func (s STMPRoomEventsBroadcaster) UserJoin(ctx context.Context, in *UserJoinEvent, conn *stmp.Conn, opts ...*stmp.CallOptions) error
func (STMPRoomEventsBroadcaster) UserJoinToAll ¶
func (s STMPRoomEventsBroadcaster) UserJoinToAll(ctx context.Context, in *UserJoinEvent, srv *stmp.Server, filter ...stmp.ConnFilter)
func (STMPRoomEventsBroadcaster) UserJoinToList ¶
func (s STMPRoomEventsBroadcaster) UserJoinToList(ctx context.Context, in *UserJoinEvent, conns ...*stmp.Conn)
func (STMPRoomEventsBroadcaster) UserJoinToSet ¶
func (s STMPRoomEventsBroadcaster) UserJoinToSet(ctx context.Context, in *UserJoinEvent, conns stmp.ConnSet, exclude ...*stmp.Conn)
type STMPRoomEventsListener ¶
type STMPRoomEventsListener interface { HandleUserJoin(ctx context.Context, in *UserJoinEvent) HandleUserExit(ctx context.Context, in *UserExitEvent) }
type STMPRoomServiceClient ¶
type STMPRoomServiceClient interface { JoinRoom(ctx context.Context, in *JoinRoomInput, opts ...*stmp.CallOptions) (*RoomModel, error) ExitRoom(ctx context.Context, in *ExitRoomInput, opts ...*stmp.CallOptions) (*empty.Empty, error) }
func STMPNewRoomServiceClient ¶
func STMPNewRoomServiceClient(c *stmp.Client) STMPRoomServiceClient
type STMPRoomServiceServer ¶
type UserExitEvent ¶
type UserExitEvent struct { User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UserExitEvent) Descriptor ¶
func (*UserExitEvent) Descriptor() ([]byte, []int)
func (*UserExitEvent) Marshal ¶
func (m *UserExitEvent) Marshal() (dAtA []byte, err error)
func (*UserExitEvent) MarshalToSizedBuffer ¶
func (m *UserExitEvent) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*UserExitEvent) ProtoMessage ¶
func (*UserExitEvent) ProtoMessage()
func (*UserExitEvent) Reset ¶
func (m *UserExitEvent) Reset()
func (*UserExitEvent) Size ¶
func (m *UserExitEvent) Size() (n int)
func (*UserExitEvent) String ¶
func (m *UserExitEvent) String() string
func (*UserExitEvent) Unmarshal ¶
func (m *UserExitEvent) Unmarshal(dAtA []byte) error
func (*UserExitEvent) XXX_DiscardUnknown ¶
func (m *UserExitEvent) XXX_DiscardUnknown()
func (*UserExitEvent) XXX_Marshal ¶
func (m *UserExitEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UserExitEvent) XXX_Merge ¶
func (m *UserExitEvent) XXX_Merge(src proto.Message)
func (*UserExitEvent) XXX_Size ¶
func (m *UserExitEvent) XXX_Size() int
func (*UserExitEvent) XXX_Unmarshal ¶
func (m *UserExitEvent) XXX_Unmarshal(b []byte) error
type UserJoinEvent ¶
type UserJoinEvent struct { User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UserJoinEvent) Descriptor ¶
func (*UserJoinEvent) Descriptor() ([]byte, []int)
func (*UserJoinEvent) Marshal ¶
func (m *UserJoinEvent) Marshal() (dAtA []byte, err error)
func (*UserJoinEvent) MarshalToSizedBuffer ¶
func (m *UserJoinEvent) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*UserJoinEvent) ProtoMessage ¶
func (*UserJoinEvent) ProtoMessage()
func (*UserJoinEvent) Reset ¶
func (m *UserJoinEvent) Reset()
func (*UserJoinEvent) Size ¶
func (m *UserJoinEvent) Size() (n int)
func (*UserJoinEvent) String ¶
func (m *UserJoinEvent) String() string
func (*UserJoinEvent) Unmarshal ¶
func (m *UserJoinEvent) Unmarshal(dAtA []byte) error
func (*UserJoinEvent) XXX_DiscardUnknown ¶
func (m *UserJoinEvent) XXX_DiscardUnknown()
func (*UserJoinEvent) XXX_Marshal ¶
func (m *UserJoinEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UserJoinEvent) XXX_Merge ¶
func (m *UserJoinEvent) XXX_Merge(src proto.Message)
func (*UserJoinEvent) XXX_Size ¶
func (m *UserJoinEvent) XXX_Size() int
func (*UserJoinEvent) XXX_Unmarshal ¶
func (m *UserJoinEvent) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.