api

package
v0.0.0-...-7cd4bc0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIResponse

type APIResponse[Info any] struct {
	Type    string `json:"type"`
	Message string `json:"message"`
	Data    Info   `json:"data"`
}

type APIServer

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

func CreateAPIServer

func CreateAPIServer(config *Config) *APIServer

func (*APIServer) Exit

func (server *APIServer) Exit()

func (*APIServer) Start

func (server *APIServer) Start() error

type Config

type Config struct {
	BindAddress string       `json:"bindAddress"`
	Store       store.Config `json:"store"`
}

func CreateConfig

func CreateConfig() *Config

Jump to

Keyboard shortcuts

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