Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackchannelLogout ¶
BackchannelLogout is emitted when the callback revived from the identity provider
type ClientlogService ¶
type ClientlogService struct {
// contains filtered or unexported fields
}
ClientlogService is the service responsible for user activities
func NewClientlogService ¶
func NewClientlogService(opts ...Option) (*ClientlogService, error)
NewClientlogService returns a clientlog service
type FileEvent ¶
type FileEvent struct {
ParentItemID string `json:"parentitemid"`
ItemID string `json:"itemid"`
SpaceID string `json:"spaceid"`
InitiatorID string `json:"initiatorid"`
Etag string `json:"etag"`
// Only in case of sharing (refactor this into separate struct when more fields are needed)
AffectedUserIDs []string `json:"affecteduserids"`
}
FileEvent is emitted when a file is uploaded/renamed/deleted/...
type Option ¶
type Option func(*Options)
Option for the clientlog service
func GatewaySelector ¶
func GatewaySelector(gatewaySelector pool.Selectable[gateway.GatewayAPIClient]) Option
GatewaySelector adds a grpc client selector for the gateway service
func RegisteredEvents ¶
func RegisteredEvents(e []events.Unmarshaller) Option
RegisteredEvents registers the events the service should listen to
func TraceProvider ¶
func TraceProvider(tp trace.TracerProvider) Option
TraceProvider adds a tracer provider for the clientlog service
type Options ¶
type Options struct {
Logger log.Logger
Stream events.Stream
Config *config.Config
GatewaySelector pool.Selectable[gateway.GatewayAPIClient]
RegisteredEvents []events.Unmarshaller
TraceProvider trace.TracerProvider
}
Options for the clientlog service
Click to show internal directories.
Click to hide internal directories.