Documentation ¶
Index ¶
- type ImImpl
- func (i *ImImpl) Close(w http.ResponseWriter, r *http.Request)
- func (i *ImImpl) Conn(w http.ResponseWriter, r *http.Request)
- func (i *ImImpl) GetMessages(ctx context.Context, req *pb.GetMessagesRequest) (*pb.MessagesResponse, error)
- func (i *ImImpl) SendMessage(ctx context.Context, req *pb.SendMessageRequest) (*pb.NullResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ImImpl ¶
type ImImpl struct { Config *config.ServerConfig `di:"~"` Logger *logrus.Logger `di:"~"` Mappers *xentity.EntityMappers `di:"~"` JwtService *module.JwtService `di:"~"` ConnDao *dao.ConnDao `di:"~"` ConnPairs []*po.ConnPair `di:"-"` }
noinspection GoNameStartsWithPackageName
func NewImImpl ¶
func NewImImpl(dic *xdi.DiContainer) *ImImpl
func (*ImImpl) GetMessages ¶
func (i *ImImpl) GetMessages(ctx context.Context, req *pb.GetMessagesRequest) (*pb.MessagesResponse, error)
func (*ImImpl) SendMessage ¶
func (i *ImImpl) SendMessage(ctx context.Context, req *pb.SendMessageRequest) (*pb.NullResponse, error)
Click to show internal directories.
Click to hide internal directories.