Documentation ¶ Index ¶ type Document type Documents func (doc Documents) Add(endpoint documents.Endpoint) Documents func (doc Documents) Latest() (v Document) func (doc Documents) Len() int func (doc Documents) Less(i, j int) bool func (doc Documents) Match(ver versions.Version) (v Document) func (doc Documents) Swap(i, j int) type Endpoints func (endpoints Endpoints) Contains(endpoint documents.Endpoint) (idx int, ok bool) func (endpoints Endpoints) Len() int func (endpoints Endpoints) Less(i, j int) bool func (endpoints Endpoints) Swap(i, j int) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Document ¶ type Document struct { Version versions.Version Endpoints Endpoints } type Documents ¶ type Documents []Document func (Documents) Add ¶ func (doc Documents) Add(endpoint documents.Endpoint) Documents func (Documents) Latest ¶ func (doc Documents) Latest() (v Document) func (Documents) Len ¶ func (doc Documents) Len() int func (Documents) Less ¶ func (doc Documents) Less(i, j int) bool func (Documents) Match ¶ added in v1.2.85 func (doc Documents) Match(ver versions.Version) (v Document) func (Documents) Swap ¶ func (doc Documents) Swap(i, j int) type Endpoints ¶ type Endpoints []documents.Endpoint func (Endpoints) Contains ¶ func (endpoints Endpoints) Contains(endpoint documents.Endpoint) (idx int, ok bool) func (Endpoints) Len ¶ func (endpoints Endpoints) Len() int func (Endpoints) Less ¶ func (endpoints Endpoints) Less(i, j int) bool func (Endpoints) Swap ¶ func (endpoints Endpoints) Swap(i, j int) Source Files ¶ View all Source files documents.go Click to show internal directories. Click to hide internal directories.