archived

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: 1 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 {
	archived.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 {
	archived.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 SlackConnection

type SlackConnection struct {
	commonArchived.Model
	Name             string `gorm:"type:varchar(100);uniqueIndex" json:"name" validate:"required"`
	Endpoint         string `gorm:"type:varchar(255)"`
	Proxy            string `json:"proxy" gorm:"type:varchar(255)"`
	RateLimitPerHour int    `comment:"api request rate limit per hour"`
	Token            string `gorm:"type:varchar(255)"`
}

func (SlackConnection) TableName

func (SlackConnection) TableName() string

Jump to

Keyboard shortcuts

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