xmlrpc

package module
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: MIT Imports: 5 Imported by: 0

README

xmlrpc: An XML-RPC Multiplexer for Go

I wanted to implement a MetaWeblog-compatible XML-RPC API in Go, but none of the existing packages in the ecosystem cut it for me: all of them rely on strong strict method signature requirements.

Usage

go get github.com/qmoya/xmlrpc

TBD

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServeMux

type ServeMux struct {
	Endpoints map[string]func(params []any) (any, int, string)
}

func NewServeMux

func NewServeMux() *ServeMux

func (*ServeMux) Handle

func (s *ServeMux) Handle(methodName string, handler func(params []any) (result any, errCode int, errMessage string))

func (*ServeMux) ServeHTTP

func (s *ServeMux) ServeHTTP(w http.ResponseWriter, req *http.Request)

Implements an HTTP server

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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