api

package
v0.0.0-...-13bfd41 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2022 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Err

type Err struct {
	Error string `json:"error"`
}

type HelloResponse

type HelloResponse struct {
	Message string `json:"message"`
}

type Server

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

func NewServer

func NewServer(config util.Config, store db.Store) (*Server, error)

func (*Server) Hello

func (server *Server) Hello(c *gin.Context)

hello world api @Summary print hello world @Tags Hello @ID Hello @Produce json @Success 200 {object} HelloResponse @Router /hello [get]

func (*Server) Start

func (server *Server) Start(address string) error

Jump to

Keyboard shortcuts

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