v1

package
v0.0.0-...-0b7a1ce Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ServeModuleResource

func ServeModuleResource(rg *routing.RouteGroup, service moduleService)

Types

type PaginatedList

type PaginatedList struct {
	PaginationInfo PaginationInfo `json:"meta"`
	Modules        interface{}    `json:"modules"`
}

type PaginationInfo

type PaginationInfo struct {
	Limit          int    `json:"limit"`
	PreviousOffset int    `json:"previous_offset"`
	PreviousUrl    int    `json:"previous_url"`
	CurrentOffset  int    `json:"current_offset"`
	NextOffset     int    `json:"next_offset"`
	NextUrl        string `json:"next_url"`
}

type VersionsList

type VersionsList []struct {
	Source   string          `json:"source"`
	Versions []models.Module `json:"versions"`
}

Jump to

Keyboard shortcuts

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