rest

package
v0.0.0-...-8e9499c Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Router

type Router struct {
	// contains filtered or unexported fields
}

Router : Instance struct for router model

func NewRouter

func NewRouter(configuration *config.Configuration, log *utility.Log, _db *gorm.DB) (*Router, error)

NewRouter : Instantiate new Router

func (*Router) SetupRouter

func (r *Router) SetupRouter() *gin.Engine

SetupRouter : register end point

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server : Rest-API server structure

func New

func New(config *config.Configuration, logger *utility.Log) (*Server, error)

New : Rest-API instantiate

func (*Server) Start

func (s *Server) Start() error

Start : run server

Jump to

Keyboard shortcuts

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