models

package
v0.0.0-...-7d3b672 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SlackChannel

type SlackChannel struct {
	common.NoPKModel   `json:"-"`
	ConnectionId       uint64 `gorm:"primaryKey"`
	Id                 string `json:"id" gorm:"primaryKey"`
	Name               string `json:"name"`
	IsChannel          bool   `json:"is_channel"`
	IsGroup            bool   `json:"is_group"`
	IsIm               bool   `json:"is_im"`
	IsMpim             bool   `json:"is_mpim"`
	IsPrivate          bool   `json:"is_private"`
	Created            int    `json:"created"`
	IsArchived         bool   `json:"is_archived"`
	IsGeneral          bool   `json:"is_general"`
	Unlinked           int    `json:"unlinked"`
	NameNormalized     string `json:"name_normalized"`
	IsShared           bool   `json:"is_shared"`
	IsOrgShared        bool   `json:"is_org_shared"`
	IsPendingExtShared bool   `json:"is_pending_ext_shared"`
	ContextTeamId      string `json:"context_team_id"`
	Updated            int64  `json:"updated"`
	Creator            string `json:"creator"`
	IsExtShared        bool   `json:"is_ext_shared"`
	IsMember           bool   `json:"is_member"`
	NumMembers         int    `json:"num_members"`
}

func (SlackChannel) TableName

func (SlackChannel) TableName() string

type SlackChannelMessage

type SlackChannelMessage struct {
	common.NoPKModel `json:"-"`
	ConnectionId     uint64 `gorm:"primaryKey"`
	ChannelId        string `json:"channel_id" gorm:"primaryKey"`
	Ts               string `json:"ts" gorm:"primaryKey"`
	ClientMsgId      string `json:"client_msg_id"`
	Type             string `json:"type"`
	Subtype          string `json:"subtype"`
	ThreadTs         string `json:"thread_ts"`
	User             string `json:"user"`
	Text             string `json:"text"`
	Team             string `json:"team"`
	ReplyCount       int    `json:"reply_count"`
	ReplyUsersCount  int    `json:"reply_users_count"`
	LatestReply      string `json:"latest_reply"`
	IsLocked         bool   `json:"is_locked"`
	Subscribed       bool   `json:"subscribed"`
	ParentUserId     string `json:"parent_user_id"`
}

func (SlackChannelMessage) TableName

func (SlackChannelMessage) TableName() string

type SlackConn

type SlackConn struct {
	helper.RestConnection `mapstructure:",squash"`
	helper.AccessToken    `mapstructure:",squash"`
}

SlackConn holds the essential information to connect to the Slack API

type SlackConnection

type SlackConnection struct {
	helper.BaseConnection `mapstructure:",squash"`
	SlackConn             `mapstructure:",squash"`
}

SlackConnection holds SlackConn plus ID/Name for database storage

func (SlackConnection) TableName

func (SlackConnection) TableName() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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