ramchi

package module
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: MIT Imports: 10 Imported by: 0

README

ramchi

ramchi is an extension to chi for rapid & modular development of sites. It allows the user to serve both backend and frontend data inside of the same go project, without the need for coding any javascript (ramchi does all this work for you). ramchi is based upon developer experience and usage, while still making your website fast and responsive.

Install

go get -u github.com/etwodev/ramchi

Config

When you create your first server, ramchi will generate a ramchi.config.json file, which allows you to configure aspects of the server.

{
 "port": "8080",
 "address": "localhost",
 "experimental": false
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handle

func Handle(w http.ResponseWriter, function string, err error, msg string, code int)

Types

type Server

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

func New

func New() *Server

func (*Server) LoadMiddleware

func (s *Server) LoadMiddleware(middlewares []middleware.Middleware)

func (*Server) LoadRouter

func (s *Server) LoadRouter(routers []router.Router)

func (*Server) Start

func (s *Server) Start()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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