api

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

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

Go to latest
Published: Jul 20, 2024 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Overview

Package api implements the client-side API for code wishing to interact with the code-odessey service. The methods of the Server type correspond to the code-odessey REST API.

Examples

Several examples of using this package are available in the GitHub repository.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server encapsulates the db, Engine, config to help connect to db and its related functions Engine helps send api request to correct handler for processing

func NewServer

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

create a new server instance

func (*Server) Start

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

Start runs the HTTP server on a specific address.

Jump to

Keyboard shortcuts

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