rest

package
v0.1.0-rc8 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2023 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 Option

type Option func(r *RestServer) error

func WithEndpoint

func WithEndpoint(endpoint RestEndpoint) Option

func WithLogger

func WithLogger(logger *zap.Logger) Option

type RestEndpoint

type RestEndpoint interface {
	Register(e *echo.Echo) error
}

type RestServer

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

func NewRestServer

func NewRestServer(host string, port int, options ...Option) (*RestServer, error)

func (*RestServer) Start

func (r *RestServer) Start()

Jump to

Keyboard shortcuts

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