activitylog

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package activitylog is a generated GoMock package.

Index

Constants

View Source
const RequestDataType = "timelineActivityLog"

Variables

Functions

This section is empty.

Types

type Client

type Client struct {
	api.WSClient
}

func NewClient

func NewClient(reader reader.Interface, logger *log.Logger) Client

type ClientInterface

type ClientInterface interface {
	api.WSListGetterClientInterface
}

type MockClientInterface

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

MockClientInterface is a mock of ClientInterface interface.

func NewMockClientInterface

func NewMockClientInterface(ctrl *gomock.Controller) *MockClientInterface

NewMockClientInterface creates a new mock instance.

func (*MockClientInterface) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockClientInterface) List

func (m *MockClientInterface) List(v any) error

List mocks base method.

type MockClientInterfaceMockRecorder

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

MockClientInterfaceMockRecorder is the mock recorder for MockClientInterface.

func (*MockClientInterfaceMockRecorder) List

List indicates an expected call of List.

type Response

type Response struct {
	Type  string       `json:"type"`
	Items ResponseItem `json:"data"`
}

type ResponseItem

type ResponseItem struct {
	Action    ResponseItemAction `json:"action,omitempty"`
	EventType string             `json:"eventType"`
	Icon      string             `json:"icon"`
	ID        string             `json:"id"`
	Subtitle  string             `json:"subtitle,omitempty"`
	Timestamp string             `json:"timestamp"`
	Title     string             `json:"title"`
}

type ResponseItemAction

type ResponseItemAction struct {
	Payload any    `json:"payload"`
	Type    string `json:"type"`
}

func (ResponseItemAction) HasDetails

func (a ResponseItemAction) HasDetails() bool

func (ResponseItemAction) PayloadStr

func (a ResponseItemAction) PayloadStr() string

Jump to

Keyboard shortcuts

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