Documentation ¶
Overview ¶
Package benchling provides support for crawling and indexing benchling.com.
Index ¶
- Constants
- func ContentType[ObjectT Objects](obj ObjectT) content.Type
- func NewScanner[ScannerT Scanners, ParamsT Params](ctx context.Context, serviceURL string, params ParamsT, ...) *operations.Scanner[ScannerT]
- func ObjectID[ObjectT Objects](obj ObjectT) string
- type APIToken
- type Backoff
- type Document
- type DocumentIndexer
- type Entries
- type Folders
- type Objects
- type Params
- type Projects
- type ScanPayload
- type Scanners
- type Users
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func ContentType ¶
func NewScanner ¶
func NewScanner[ScannerT Scanners, ParamsT Params](ctx context.Context, serviceURL string, params ParamsT, opts ...operations.Option) *operations.Scanner[ScannerT]
Types ¶
type APIToken ¶
type APIToken struct {
Token string
}
APIToken is an implementation of operations.Authorizer for a benchling API token.
type Backoff ¶
type Backoff struct {
// contains filtered or unexported fields
}
Backoff implements a backoff strategy that first looks for the specific backoff period specified in the x-rate-limit-reset header in benchling.com's http response when a rate limit is reached. If no such header is found then exponential backoff is used.
type Document ¶
type Document struct { Entry benchlingsdk.Entry // An actual data entry. Folder benchlingsdk.Folder // The folder containing the entry. Project benchlingsdk.Project // The project containing the folder. DayNotes string Parents []string // The parent folders of the folder containing the entry. Users map[string]benchlingsdk.User // All users referenced in the entry, keyed by their userid. }
Document represents the structure of information within benchling in terms of an a single indexable document.
type DocumentIndexer ¶
type DocumentIndexer struct {
// contains filtered or unexported fields
}
func NewDocumentIndexer ¶
func NewDocumentIndexer(fs operations.FS, downloads string, sharder path.Sharder, concurrency int) *DocumentIndexer
type Entries ¶
type Entries struct { NextToken *string Entries []benchlingsdk.Entry }
type Folders ¶
type Folders struct { NextToken *string Folders []benchlingsdk.Folder }
type Objects ¶
type Objects interface { benchlingsdk.Entry | benchlingsdk.User | benchlingsdk.Folder | benchlingsdk.Project | Document }
type Params ¶
type Params interface { *benchlingsdk.ListEntriesParams | *benchlingsdk.ListUsersParams | *benchlingsdk.ListFoldersParams | *benchlingsdk.ListProjectsParams }
type Projects ¶
type Projects struct { NextToken *string Projects []benchlingsdk.Project }
type ScanPayload ¶
type Users ¶
type Users struct { NextToken *string Users []benchlingsdk.User }
Directories ¶
Path | Synopsis |
---|---|
Package benchlingcmd provides support for building command line tools that access benchling.com
|
Package benchlingcmd provides support for building command line tools that access benchling.com |
Package benchlingsdk provides primitives to interact with the openapi HTTP API.
|
Package benchlingsdk provides primitives to interact with the openapi HTTP API. |
Click to show internal directories.
Click to hide internal directories.