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 ¶
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()
Click to show internal directories.
Click to hide internal directories.