Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPageNumber ¶
GetPageNumber : returns the page number from the request.
func HandleAPICallToPage ¶
HandleAPICallToPage : returns true if this function handles the result of the API call, else returns false.
Types ¶
type Handlers ¶
type Handlers struct { RecurringTasks func() APIMiddlewares []api.ResponseHandlerFunc RouterConfigureDefaultRoutes route.ConfigureDefaultRoutes }
Handlers : list of the functions of an API.
type Pagination ¶
type Pagination struct { CountOfPages int Pages []int TotalItems int ItemsPerPage int CurrentPage int PreviousPage int NextPage int }
Pagination : properties of a Pagination struct.
func GetPagination ¶
func GetPagination(countOfItems, itemsPerPage, currentPage int) Pagination
GetPagination : returns an initialized Pagination struct.
type Server ¶
type Server struct { RoutesFile string Functions Handlers // contains filtered or unexported fields }
Server : definition of an web server.
func (*Server) AddCustomRoutes ¶
func (s *Server) AddCustomRoutes(configuration route.ConfigureCustomRoutes)
AddCustomRoutes : adds some suctom routes.
func (*Server) CreateKafkaConsumers ¶
func (s *Server) CreateKafkaConsumers() []kafka.MessageConsumer
CreateKafkaConsumers return an array of kafka consumers.
Click to show internal directories.
Click to hide internal directories.