Documentation ¶
Index ¶
- Variables
- func BackgroundChatCtx(sourceCtx context.Context, g *Context) context.Context
- func ChatCtx(ctx context.Context, g *Context, mode keybase1.TLFIdentifyBehavior, ...) context.Context
- func CtxAddIdentifyMode(ctx context.Context, mode keybase1.TLFIdentifyBehavior, ...) context.Context
- func CtxAddLocalizerCancelable(ctx context.Context) context.Context
- func CtxAddLogTags(ctx context.Context, g *Context) context.Context
- func CtxAddMessageCacheSkips(ctx context.Context, convID chat1.ConversationID, msgs []chat1.MessageUnboxed)
- func CtxAddOverrideNameInfoSource(ctx context.Context, ni types.NameInfoSource) context.Context
- func CtxAddRateLimit(ctx context.Context, rl []chat1.RateLimit)
- func CtxIdentifyMode(ctx context.Context) (ib keybase1.TLFIdentifyBehavior, breaks *[]keybase1.TLFIdentifyFailure, ...)
- func CtxIdentifyNotifier(ctx context.Context) types.IdentifyNotifier
- func CtxKeyFinder(ctx context.Context, g *Context) types.KeyFinder
- func CtxModifyIdentifyNotifier(ctx context.Context, notifier types.IdentifyNotifier) context.Context
- func CtxModifyUnboxMode(ctx context.Context, unboxMode types.UnboxMode) context.Context
- func CtxOverrideNameInfoSource(ctx context.Context) (types.NameInfoSource, bool)
- func CtxRateLimits(ctx context.Context) (res []chat1.RateLimit)
- func CtxRemoveLocalizerCancelable(ctx context.Context) context.Context
- func CtxTrace(ctx context.Context) (string, bool)
- func CtxUPAKFinder(ctx context.Context, g *Context) types.UPAKFinder
- func CtxUnboxMode(ctx context.Context) types.UnboxMode
- func IsLocalizerCancelableCtx(ctx context.Context) bool
- type ChatContext
- type ChatContextified
- type Context
- type Contextified
- type MessageCacheSkip
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultTeamTopic = "general"
Functions ¶
func BackgroundChatCtx ¶
func ChatCtx ¶
func ChatCtx(ctx context.Context, g *Context, mode keybase1.TLFIdentifyBehavior, breaks *[]keybase1.TLFIdentifyFailure, notifier types.IdentifyNotifier) context.Context
func CtxAddIdentifyMode ¶
func CtxAddIdentifyMode(ctx context.Context, mode keybase1.TLFIdentifyBehavior, breaks *[]keybase1.TLFIdentifyFailure) context.Context
func CtxAddMessageCacheSkips ¶
func CtxAddMessageCacheSkips(ctx context.Context, convID chat1.ConversationID, msgs []chat1.MessageUnboxed)
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 CtxModifyUnboxMode ¶
func CtxOverrideNameInfoSource ¶
func CtxOverrideNameInfoSource(ctx context.Context) (types.NameInfoSource, bool)
func CtxUPAKFinder ¶
func CtxUPAKFinder(ctx context.Context, g *Context) types.UPAKFinder
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 }
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)
Click to show internal directories.
Click to hide internal directories.