table

package
v0.0.0-...-cc739ab Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsDuplicate

func IsDuplicate(err error) bool

func IsNotFound

func IsNotFound(err error) bool

Types

type MeetingInfo

type MeetingInfo struct {
	RoomID      string    `bson:"room_id"`
	MeetingName string    `bson:"meeting_name"`
	HostUserID  string    `bson:"host_user_id"`
	Status      int64     `bson:"status"`
	StartTime   time.Time `bson:"start_time"`
	EndTime     time.Time `bson:"end_time"`
	CreateTime  time.Time `bson:"create_time"`
	Ex          string    `bson:"ex"`
}

type MeetingInterface

type MeetingInterface interface {
	Find(ctx context.Context, roomIDs []string) ([]*MeetingInfo, error)
	CreateMeetingInfo(ctx context.Context, meetingInfo *MeetingInfo) error
	UpdateMeetingInfo(ctx context.Context, roomID string, update map[string]any) error
	GetUnCompleteMeetingIDList(ctx context.Context, roomIDs []string) ([]string, error)
	Delete(ctx context.Context, roomIDs []string) error
	GetMeetingRecords(ctx context.Context, hostUserID string, startTime, endTime time.Time, pagination pagination.Pagination) (int64, []*MeetingInfo, error)
}

type MeetingInvitationInfo

type MeetingInvitationInfo struct {
	RoomID     string    `bson:"room_id"`
	UserID     string    `bson:"user_id"`
	CreateTime time.Time `bson:"create_time"`
}

type MeetingInvitationInterface

type MeetingInvitationInterface interface {
	FindUserIDs(ctx context.Context, roomID string) ([]string, error)
	CreateMeetingInvitationInfo(ctx context.Context, roomID string, inviteeUserIDs []string) error
	GetUserInvitedMeetingIDs(ctx context.Context, userID string) (meetingIDs []string, err error)
	Delete(ctx context.Context, roomIDs []string) error
	GetMeetingRecords(ctx context.Context, joinedUserID string, startTime, endTime time.Time, pagination pagination.Pagination) (int64, []string, error)
}

type MeetingRecordInterface

type MeetingRecordInterface interface {
	CreateMeetingVideoRecord(ctx context.Context, meetingVideoRecord *MeetingVideoRecord) error
}

type MeetingVideoRecord

type MeetingVideoRecord struct {
	RoomID     string    `bson:"room_id"`
	FileURL    string    `bson:"file_url"`
	CreateTime time.Time `bson:"create_time"`
}

type SignalInterface

type SignalInterface interface {
	Find(ctx context.Context, sids []string) ([]*SignalModel, error)
	CreateSignal(ctx context.Context, signalModel *SignalModel) error
	Update(ctx context.Context, sid string, update map[string]any) error
	UpdateSignalFileURL(ctx context.Context, sID, fileURL string) error
	UpdateSignalEndTime(ctx context.Context, sID string, endTime time.Time) error
	Delete(ctx context.Context, sids []string) error
	PageSignal(ctx context.Context, sesstionType int32, sendID string, startTime, endTime time.Time, pagination pagination.Pagination) (int64, []*SignalModel, error)
}

type SignalInvitationInterface

type SignalInvitationInterface interface {
	Find(ctx context.Context, sid string) ([]*SignalInvitationModel, error)
	CreateSignalInvitation(ctx context.Context, sid string, inviteeUserIDs []string) error
	HandleSignalInvitation(ctx context.Context, sID, InviteeUserID string, status int32) error
	PageSID(ctx context.Context, recvID string, startTime, endTime time.Time, pagination pagination.Pagination) (int64, []string, error)
	Delete(ctx context.Context, sids []string) error
}

type SignalInvitationModel

type SignalInvitationModel struct {
	SID          string    `bson:"sid"`
	UserID       string    `bson:"user_id"`
	Status       int32     `bson:"status"`
	InitiateTime time.Time `bson:"initiate_time"`
	HandleTime   time.Time `bson:"handle_time"`
}

type SignalModel

type SignalModel struct {
	SID           string    `bson:"sid"`
	InviterUserID string    `bson:"inviter_user_id"`
	CustomData    string    `bson:"custom_data"`
	GroupID       string    `bson:"group_id"`
	RoomID        string    `bson:"room_id"`
	Timeout       int32     `bson:"timeout"`
	MediaType     string    `bson:"media_type"`
	PlatformID    int32     `bson:"platform_id"`
	SessionType   int32     `bson:"session_type"`
	InitiateTime  time.Time `bson:"initiate_time"`
	EndTime       time.Time `bson:"end_time"`
	FileURL       string    `bson:"file_url"`

	Title         string `bson:"title"`
	Desc          string `bson:"desc"`
	Ex            string `bson:"ex"`
	IOSPushSound  string `bson:"ios_push_sound"`
	IOSBadgeCount bool   `bson:"ios_badge_count"`
	SignalInfo    string `bson:"signal_info"`
}

Jump to

Keyboard shortcuts

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