globals

package
v5.4.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2020 License: BSD-3-Clause, BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultTeamTopic = "general"
View Source
var EmojiPattern = regexp.MustCompile(`(?::)([^:\s]+)(?::)`)

Functions

func BackgroundChatCtx

func BackgroundChatCtx(sourceCtx context.Context, g *Context) context.Context

func CtxAddLocalizerCancelable

func CtxAddLocalizerCancelable(ctx context.Context) context.Context

func CtxAddLogTags

func CtxAddLogTags(ctx context.Context, g *Context) context.Context

func CtxAddMessageCacheSkips

func CtxAddMessageCacheSkips(ctx context.Context, convID chat1.ConversationID, msgs []chat1.MessageUnboxed)

func CtxAddOverrideNameInfoSource

func CtxAddOverrideNameInfoSource(ctx context.Context, ni types.NameInfoSource) context.Context

func CtxAddRateLimit

func CtxAddRateLimit(ctx context.Context, rl []chat1.RateLimit)

func CtxIdentifyMode

func CtxIdentifyMode(ctx context.Context) (ib keybase1.TLFIdentifyBehavior, breaks *[]keybase1.TLFIdentifyFailure, ok bool)

func CtxIdentifyNotifier

func CtxIdentifyNotifier(ctx context.Context) types.IdentifyNotifier

func CtxKeyFinder

func CtxKeyFinder(ctx context.Context, g *Context) types.KeyFinder

func CtxMakeEmojiHarvester

func CtxMakeEmojiHarvester(ctx context.Context) context.Context

func CtxModifyIdentifyNotifier

func CtxModifyIdentifyNotifier(ctx context.Context, notifier types.IdentifyNotifier) context.Context

func CtxModifyUnboxMode

func CtxModifyUnboxMode(ctx context.Context, unboxMode types.UnboxMode) context.Context

func CtxOverrideNameInfoSource

func CtxOverrideNameInfoSource(ctx context.Context) (types.NameInfoSource, bool)

func CtxRateLimits

func CtxRateLimits(ctx context.Context) (res []chat1.RateLimit)

func CtxRemoveLocalizerCancelable

func CtxRemoveLocalizerCancelable(ctx context.Context) context.Context

func CtxTrace

func CtxTrace(ctx context.Context) (string, bool)

func CtxUPAKFinder

func CtxUPAKFinder(ctx context.Context, g *Context) types.UPAKFinder

func CtxUnboxMode

func CtxUnboxMode(ctx context.Context) types.UnboxMode

func IsEmojiHarvesterCtx

func IsEmojiHarvesterCtx(ctx context.Context) bool

func IsLocalizerCancelableCtx

func IsLocalizerCancelableCtx(ctx context.Context) bool

Types

type ChatContext

type ChatContext struct {
	CtxFactory           types.ContextFactory      // source of verified user info and crypt keys
	InboxSource          types.InboxSource         // source of remote inbox entries for chat
	ConvSource           types.ConversationSource  // source of remote message bodies for chat
	MessageDeliverer     types.MessageDeliverer    // background message delivery service
	ServerCacheVersions  types.ServerCacheVersions // server side versions for chat caches
	RegexpSearcher       types.RegexpSearcher      // For searching chat messages in a conversation via regexp
	Indexer              types.Indexer             // For searching chat messages in the entire inbox
	Syncer               types.Syncer              // For syncing inbox with server
	FetchRetrier         types.FetchRetrier        // For retrying failed fetch requests
	ConvLoader           types.ConvLoader          // background conversation loader
	PushHandler          types.PushHandler         // for handling push notifications from chat server
	TeamChannelSource    types.TeamChannelSource   // source of all channels in a team
	AttachmentURLSrv     types.AttachmentURLSrv    // source of URLs for loading attachments
	EphemeralPurger      types.EphemeralPurger     // triggers background purges of ephemeral chats
	ActivityNotifier     types.ActivityNotifier    // notify clients of chat of new activity
	AttachmentUploader   types.AttachmentUploader  // upload attachments
	NativeVideoHelper    types.NativeVideoHelper   // connection to native for doing things with video
	StellarLoader        types.StellarLoader       // stellar payment/request loader
	StellarSender        types.StellarSender       // stellar in-chat payment sender
	StellarPushHandler   types.OobmHandler
	Unfurler             types.Unfurler                   // unfurl messages with URLs
	CommandsSource       types.ConversationCommandsSource // source for / commands for conversations
	CoinFlipManager      types.CoinFlipManager            // manage /flip games
	JourneyCardManager   types.JourneyCardManager         // manages team journey cards
	TeamMentionLoader    types.TeamMentionLoader          // load potential team mentions
	ExternalAPIKeySource types.ExternalAPIKeySource       // source of third party API keys
	LiveLocationTracker  types.LiveLocationTracker        // track live location messages for updates
	BotCommandManager    types.BotCommandManager          // manages commands from bots in convs
	UIInboxLoader        types.UIInboxLoader              // manages loading inbox for UI
	UIThreadLoader       types.UIThreadLoader             // manages loading threads for UI
	Badger               *badges.Badger                   // app badging
	ParticipantsSource   types.ParticipantSource          // get team participants
	EmojiSource          types.EmojiSource                // emoji support
	EphemeralTracker     types.EphemeralTracker           // tracking of ephemeral msg caches
}

func (*ChatContext) Describe

func (c *ChatContext) Describe() string

type ChatContextified

type ChatContextified struct {
	// contains filtered or unexported fields
}

func NewChatContextified

func NewChatContextified(gc *ChatContext) ChatContextified

func (ChatContextified) ChatG

func (c ChatContextified) ChatG() *ChatContext

type Context

type Context struct {
	*libkb.GlobalContext
	*ChatContext
}

func NewContext

func NewContext(g *libkb.GlobalContext, c *ChatContext) *Context

func (*Context) ExternalG

func (c *Context) ExternalG() *libkb.GlobalContext

func (*Context) MetaContext

func (c *Context) MetaContext(ctx context.Context) libkb.MetaContext

type Contextified

type Contextified struct {
	// contains filtered or unexported fields
}

func NewContextified

func NewContextified(gc *Context) Contextified

func (Contextified) G

func (c Contextified) G() *Context

func (Contextified) MetaContext

func (c Contextified) MetaContext(ctx context.Context) libkb.MetaContext

type MessageCacheSkip

type MessageCacheSkip struct {
	ConvID chat1.ConversationID
	Msgs   []chat1.MessageUnboxed
}

func CtxMessageCacheSkips

func CtxMessageCacheSkips(ctx context.Context) (res []MessageCacheSkip)

Jump to

Keyboard shortcuts

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