vendor/github.com/McKael/madon/v3/madon.go
changeset 276 15f5ac844492
parent 270 df7e9dff1b66
equal deleted inserted replaced
275:4a25a40d0c59 276:15f5ac844492
    11 	"github.com/pkg/errors"
    11 	"github.com/pkg/errors"
    12 )
    12 )
    13 
    13 
    14 // LimitParams contains common limit/paging options for the Mastodon REST API
    14 // LimitParams contains common limit/paging options for the Mastodon REST API
    15 type LimitParams struct {
    15 type LimitParams struct {
    16 	Limit          int              // Number of items per query
    16 	Limit          int        // Number of items per query
    17 	SinceID, MaxID ActivityID // Boundaries
    17 	SinceID, MaxID ActivityID // Boundaries
    18 	All            bool             // Get as many items as possible
    18 	All            bool       // Get as many items as possible
    19 }
    19 }
    20 
    20 
    21 // apiCallParams is a map with the parameters for an API call
    21 // apiCallParams is a map with the parameters for an API call
    22 type apiCallParams map[string]string
    22 type apiCallParams map[string]string
    23 
    23 
    24 const (
    24 const (
    25 	// MadonVersion contains the version of the Madon library
    25 	// MadonVersion contains the version of the Madon library
    26 	MadonVersion = "3.0.0-dev"
    26 	MadonVersion = "3.0.0"
    27 
    27 
    28 	currentAPIPath = "/api"
    28 	currentAPIPath = "/api"
    29 
    29 
    30 	// NoRedirect is the URI for no redirection in the App registration
    30 	// NoRedirect is the URI for no redirection in the App registration
    31 	NoRedirect = "urn:ietf:wg:oauth:2.0:oob"
    31 	NoRedirect = "urn:ietf:wg:oauth:2.0:oob"