activity

package
v1.26.0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2026 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InjectLocalizedText

func InjectLocalizedText(ctx context.Context, ocpData ocp_data.Provider, userOwnerAccount *ocp_common.Account, notification *activitypb.Notification, cashMessageVerb messagingpb.CashContent_Verb) error

InjectLocalizedText sets the notification's display text. cashMessageVerb applies only to a payment sent to a known recipient, where it distinguishes a tip from a plain send; it is ignored for every other notification type. Callers derive it with intent.GetDmPaymentVerb so the feed and the DM cash message agree.

func NotificationIDString

func NotificationIDString(id *activitypb.NotificationId) string

Types

type Server

type Server struct {
	activitypb.UnimplementedActivityFeedServer
	// contains filtered or unexported fields
}

func NewServer

func NewServer(
	log *zap.Logger,
	authz auth.Authorizer,
	accounts account.Store,
	ocpData ocp_data.Provider,
) *Server

Jump to

Keyboard shortcuts

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