globals

package
v3.2.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2019 License: BSD-3-Clause, BSD-3-Clause Imports: 7 Imported by: 28 modules, 187 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultTeamTopic = "general"

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 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 CtxModifyIdentifyNotifier

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

func CtxOverrideNameInfoSource

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

func CtxRateLimits

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

func CtxTrace

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

func CtxUPAKFinder

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

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
}

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

Jump to

Keyboard shortcuts

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