leafModel

package
v0.0.0-...-0829b1e Latest Latest
Warning

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

Go to latest
Published: May 23, 2022 License: MIT Imports: 3 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BasePagingResponse

type BasePagingResponse struct {
	Count       int          `json:"count"`
	CurrentPage int          `json:"currentPage"`
	TotalPage   int          `json:"totalPages"`
	Params      PagingParams `json:"params"`
}

type BaseSimplePagingResponse

type BaseSimplePagingResponse struct {
	CurrentPage int          `json:"currentPage"`
	Next        bool         `json:"next"`
	Params      PagingParams `json:"params"`
}

type HealthEndpoint

type HealthEndpoint struct {
	Method string `json:"method"`
	Path   string `json:"path"`
	Verify string `json:"name"`
}

func (HealthEndpoint) IsDocumentation

func (e HealthEndpoint) IsDocumentation() bool

func (HealthEndpoint) String

func (e HealthEndpoint) String() string

type HealthEndpoints

type HealthEndpoints []HealthEndpoint

func (HealthEndpoints) String

func (e HealthEndpoints) String() []string

func (HealthEndpoints) Verify

func (e HealthEndpoints) Verify() HealthEndpoints

type HealthRoutesResponse

type HealthRoutesResponse struct {
	Routes []string `json:"routes"`
}

type PagingParams

type PagingParams struct {
	Page   int         `json:"page"`
	Limit  int         `json:"limit"`
	Sort   []string    `json:"sort"`
	Filter interface{} `json:"filter,omitempty"`
}

type PagingResponse

type PagingResponse struct {
	Count       int          `json:"count"`
	CurrentPage int          `json:"currentPage"`
	TotalPage   int          `json:"totalPages"`
	Params      PagingParams `json:"params"`
	Items       interface{}  `json:"items"`
}

type SimplePagingResponse

type SimplePagingResponse struct {
	CurrentPage int          `json:"currentPage"`
	Next        bool         `json:"next"`
	Params      PagingParams `json:"params"`
	Items       interface{}  `json:"items"`
}

Jump to

Keyboard shortcuts

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