Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChannelJoinMessage ¶
type ChannelJoinMessage struct { User string `json:"user" url:"user"` Inviter string `json:"inviter" url:"inviter"` UserProfile struct { AvatarHash string `json:"avatar_hash" url:"avatar_hash"` Image72 string `json:"image_72" url:"image_72"` FirstName interface{} `json:"first_name" url:"first_name"` RealName string `json:"real_name" url:"real_name"` DisplayName string `json:"display_name" url:"display_name"` Team string `json:"team" url:"team"` Name string `json:"name" url:"name"` IsRestricted bool `json:"is_restricted" url:"is_restricted"` IsUltraRestricted bool `json:"is_ultra_restricted" url:"is_ultra_restricted"` } `json:"user_profile" url:"user_profile"` Type string `json:"type" url:"type"` Subtype string `json:"subtype" url:"subtype"` Team string `json:"team" url:"team"` Text string `json:"text" url:"text"` Channel string `json:"channel" url:"channel"` EventTs string `json:"event_ts" url:"event_ts"` Ts string `json:"ts" url:"ts"` }
ffjson: noencoder
func (*ChannelJoinMessage) UnmarshalJSON ¶
func (j *ChannelJoinMessage) UnmarshalJSON(input []byte) error
UnmarshalJSON umarshall json - template of ffjson
func (*ChannelJoinMessage) UnmarshalJSONFFLexer ¶
func (j *ChannelJoinMessage) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error
UnmarshalJSONFFLexer fast json unmarshall - template ffjson
type ConnectRequest ¶
type ConnectRequest struct {
Token string `json:"token" url:"token"`
}
ffjson: nodecoder
func (*ConnectRequest) MarshalJSON ¶
func (j *ConnectRequest) MarshalJSON() ([]byte, error)
MarshalJSON marshal bytes to json - template
func (*ConnectRequest) MarshalJSONBuf ¶
func (j *ConnectRequest) MarshalJSONBuf(buf fflib.EncodingBuffer) error
MarshalJSONBuf marshal buff to json - template
type ConnectResponse ¶
type ConnectResponse struct { Self struct { ID string `json:"id"` Name string `json:"name"` } `json:"self"` Team struct { Domain string `json:"domain"` ID string `json:"id"` Name string `json:"name"` } `json:"team"` URL string `json:"url"` }
ffjson: noencoder
func Connect ¶
func Connect(req *ConnectRequest) (*ConnectResponse, error)
func (*ConnectResponse) UnmarshalJSON ¶
func (j *ConnectResponse) UnmarshalJSON(input []byte) error
UnmarshalJSON umarshall json - template of ffjson
func (*ConnectResponse) UnmarshalJSONFFLexer ¶
func (j *ConnectResponse) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error
UnmarshalJSONFFLexer fast json unmarshall - template ffjson
type GroupJoinMessage ¶
type GroupJoinMessage struct { Channel struct { ID string `json:"id" url:"id"` Name string `json:"name" url:"name"` IsChannel bool `json:"is_channel" url:"is_channel"` IsGroup bool `json:"is_group" url:"is_group"` IsIm bool `json:"is_im" url:"is_im"` Created int `json:"created" url:"created"` IsArchived bool `json:"is_archived" url:"is_archived"` IsGeneral bool `json:"is_general" url:"is_general"` Unlinked int `json:"unlinked" url:"unlinked"` NameNormalized string `json:"name_normalized" url:"name_normalized"` IsShared bool `json:"is_shared" url:"is_shared"` Creator string `json:"creator" url:"creator"` IsExtShared bool `json:"is_ext_shared" url:"is_ext_shared"` IsOrgShared bool `json:"is_org_shared" url:"is_org_shared"` PendingShared []interface{} `json:"pending_shared" url:"pending_shared"` IsPendingExtShared bool `json:"is_pending_ext_shared" url:"is_pending_ext_shared"` IsMember bool `json:"is_member" url:"is_member"` IsPrivate bool `json:"is_private" url:"is_private"` IsMpim bool `json:"is_mpim" url:"is_mpim"` LastRead string `json:"last_read" url:"last_read"` Latest interface{} `json:"latest" url:"latest"` UnreadCount int `json:"unread_count" url:"unread_count"` UnreadCountDisplay int `json:"unread_count_display" url:"unread_count_display"` IsOpen bool `json:"is_open" url:"is_open"` Members []string `json:"members" url:"members"` Topic struct { Value string `json:"value" url:"value"` Creator string `json:"creator" url:"creator"` LastSet int `json:"last_set" url:"last_set"` } `json:"topic" url:"topic"` Purpose struct { Value string `json:"value" url:"value"` Creator string `json:"creator" url:"creator"` LastSet int `json:"last_set" url:"last_set"` } `json:"purpose" url:"purpose"` } `json:"channel" url:"channel"` }
ffjson: noencoder
func (*GroupJoinMessage) UnmarshalJSON ¶
func (j *GroupJoinMessage) UnmarshalJSON(input []byte) error
UnmarshalJSON umarshall json - template of ffjson
func (*GroupJoinMessage) UnmarshalJSONFFLexer ¶
func (j *GroupJoinMessage) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error
UnmarshalJSONFFLexer fast json unmarshall - template ffjson
type Message ¶
type Message struct { Channel string `json:"channel" url:"channel"` SourceTeam string `json:"source_team" url:"source_team"` Team string `json:"team" url:"team"` Text string `json:"text" url:"text"` ThreadTs string `json:"thread_ts" url:"thread_ts"` Ts string `json:"ts" url:"ts"` User string `json:"user" url:"user"` }
ffjson: noencoder
func (*Message) UnmarshalJSON ¶
UnmarshalJSON umarshall json - template of ffjson
func (*Message) UnmarshalJSONFFLexer ¶
UnmarshalJSONFFLexer fast json unmarshall - template ffjson
type UserChannelJoinMessage ¶
type UserChannelJoinMessage struct { Type string `json:"type" url:"type"` User string `json:"user" url:"user"` Channel string `json:"channel" url:"channel"` ChannelType string `json:"channel_type" url:"channel_type"` Team string `json:"team" url:"team"` Inviter string `json:"inviter" url:"inviter"` EventTs string `json:"event_ts" url:"event_ts"` Ts string `json:"ts" url:"ts"` }
ffjson: noencoder
func (*UserChannelJoinMessage) UnmarshalJSON ¶
func (j *UserChannelJoinMessage) UnmarshalJSON(input []byte) error
UnmarshalJSON umarshall json - template of ffjson
func (*UserChannelJoinMessage) UnmarshalJSONFFLexer ¶
func (j *UserChannelJoinMessage) UnmarshalJSONFFLexer(fs *fflib.FFLexer, state fflib.FFParseState) error
UnmarshalJSONFFLexer fast json unmarshall - template ffjson