github.com/glide-im/glide@v1.6.0/im_service/messages/message.go (about)

     1  package messages
     2  
     3  import (
     4  	"github.com/glide-im/glide/pkg/gate"
     5  	"github.com/glide-im/glide/pkg/messages"
     6  )
     7  
     8  func CreateKickOutMessage(c *gate.Info) *messages.GlideMessage {
     9  	return messages.NewMessage(0, NotifyKickOut, "")
    10  }
    11  
    12  // ClientCustom client custom message, server does not store to database.
    13  type ClientCustom struct {
    14  	Type    string      `json:"type,omitempty"`
    15  	Content interface{} `json:"content,omitempty"`
    16  }