api

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2024 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 Response

type Response struct {
	Error string      `json:"error,omitempty"`
	Data  interface{} `json:"data"`
}

type Server

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

Server api server

func NewServer

func NewServer() *Server

NewServer create api server

func (Server) Run

func (s Server) Run() error

func (Server) ServeHTTP

func (s Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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