fiber

package
v0.0.0-...-9d0e06d Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

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

Adapter struct to save apps that implement grpc adapters and set port that grpc server should run

func New

func New(port, prefix string, config *fiber.Config) *Adapter

func (*Adapter) AddApp

func (g *Adapter) AddApp(app rest.AppInterface)

func (Adapter) GetApps

func (g Adapter) GetApps() []api.App

func (*Adapter) GetName

func (g *Adapter) GetName() string

func (*Adapter) Run

func (g *Adapter) Run() error

type CustomResponseWriter

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

func NewCustomResponseWriter

func NewCustomResponseWriter() *CustomResponseWriter

func (*CustomResponseWriter) Header

func (w *CustomResponseWriter) Header() http.Header

func (*CustomResponseWriter) Write

func (w *CustomResponseWriter) Write(b []byte) (int, error)

func (*CustomResponseWriter) WriteHeader

func (w *CustomResponseWriter) WriteHeader(statusCode int)

Jump to

Keyboard shortcuts

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