services

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2021 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Empty

type Empty struct{}

type Encoder

type Encoder interface {
	New(r *http.Request, args *string, result *ID) (err error)
	Delete(r *http.Request, args *ID, result *Empty) (err error)
	EncodeFile(r *http.Request, args *Path, result *string) (err error)
}

type EncoderService

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

func (*EncoderService) Delete

func (e *EncoderService) Delete(r *http.Request, args *ID, result *Empty) (err error)

func (*EncoderService) EncodeFile

func (e *EncoderService) EncodeFile(r *http.Request, args *Path, result *string) (err error)

TODO: implement

func (*EncoderService) Get

func (e *EncoderService) Get(id ID) (enc doc.Encoder, ok bool)

func (*EncoderService) New

func (e *EncoderService) New(r *http.Request, args *string, result *ID) (err error)

func (*EncoderService) Set

func (e *EncoderService) Set(id ID, enc doc.Encoder)

type EncoderType

type EncoderType int
const (
	Base32 EncoderType = iota
	Base64
)

func (EncoderType) New

func (et EncoderType) New() (e doc.Encoder)

func (*EncoderType) Set

func (et *EncoderType) Set(s string) (err error)

func (EncoderType) String

func (et EncoderType) String() (s string)

type FiberQueryParams

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

func (FiberQueryParams) GetParam

func (f FiberQueryParams) GetParam(key string) (value string)

type FiberUrlParams

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

func (FiberUrlParams) GetParam

func (f FiberUrlParams) GetParam(key string) (value string)

type ID

type ID hash.ID64

type JsonRPC

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

func (*JsonRPC) Add

func (j *JsonRPC) Add(service interface{})

func (JsonRPC) Run

func (j JsonRPC) Run() (err error)

func (*JsonRPC) WithServices

func (j *JsonRPC) WithServices(services ...interface{}) (jj *JsonRPC)

type Path

type Path struct {
	Path path.Path `json:"path"`
}

func (Path) Hash

func (p Path) Hash(h hash.Hash)

type Paths

type Paths struct {
	Paths []path.Path `json:"paths"`
}

func (Paths) Hash

func (p Paths) Hash(h hash.Hash)

type UrlMode

type UrlMode int
const (
	UrlParams UrlMode = iota
	UrlQuery
)

func (UrlMode) FromFiberCtx

func (u UrlMode) FromFiberCtx(ctx *fiber.Ctx) (g parsing.Getter)

Jump to

Keyboard shortcuts

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