history

package
v3.3.342 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2026 License: MIT Imports: 4 Imported by: 0 modules, 0 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

Overview

Package history is the Files.com API client package for the files_sdk.History model.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	files_sdk.Config
}

Client calls the History API using its embedded Config.

func (*Client) List

List returns an iterator for GET /history. Pages are requested as iteration reaches them: range over Iter.All, or call Next and then check Err.

API operation: List site full action history.

func (*Client) ListForFile

ListForFile returns an iterator for GET /history/files/{path}. Pages are requested as iteration reaches them: range over Iter.All, or call Next and then check Err.

API operation: List history for specific file.

func (*Client) ListForFolder

ListForFolder returns an iterator for GET /history/folders/{path}. Pages are requested as iteration reaches them: range over Iter.All, or call Next and then check Err.

API operation: List history for specific folder.

func (*Client) ListForUser

ListForUser returns an iterator for GET /history/users/{user_id}. Pages are requested as iteration reaches them: range over Iter.All, or call Next and then check Err.

API operation: List history for specific user.

func (*Client) ListLogins

ListLogins returns an iterator for GET /history/login. Pages are requested as iteration reaches them: range over Iter.All, or call Next and then check Err.

API operation: List site login history.

type Iter

type Iter struct {
	*files_sdk.Iter
	*Client
}

Iter traverses a paginated API response. Range over All to get each resource with a nil error, followed by the error that stopped the listing, if any. Alternatively, call Next before reading the current resource, then check Err after Next returns false.

func List

List returns a listing iterator using the default configuration. See Client.List for the operation and paging behavior.

func ListForFile

ListForFile returns a listing iterator using the default configuration. See Client.ListForFile for the operation and paging behavior.

func ListForFolder

ListForFolder returns a listing iterator using the default configuration. See Client.ListForFolder for the operation and paging behavior.

func ListForUser

ListForUser returns a listing iterator using the default configuration. See Client.ListForUser for the operation and paging behavior.

func ListLogins

ListLogins returns a listing iterator using the default configuration. See Client.ListLogins for the operation and paging behavior.

func (*Iter) Action

func (i *Iter) Action() files_sdk.Action

Action returns the current resource. Call it only after Next returns true.

func (*Iter) All added in v3.3.301

func (i *Iter) All() iter.Seq2[files_sdk.Action, error]

All returns an iterator over the listing's remaining resources, each with a nil error, followed by the error that stops the listing, if any. Pages are requested as the loop reaches them. See files_sdk.IterAll.

func (*Iter) Reload

func (i *Iter) Reload(opts ...files_sdk.RequestResponseOption) files_sdk.IterI

Reload returns a new iterator for the same listing, starting at the first page. See files_sdk.Iter.Reload for parameter and request-option handling.

Jump to

Keyboard shortcuts

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