responsip

package module
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: MIT Imports: 10 Imported by: 0

README

responsip

Custom Response package

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context interface {
	JSON(statusCode int, v interface{}) error
	GetHeader(key string) string
}

type ParsingError

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

func (*ParsingError) Error

func (re *ParsingError) Error() string

type Responsip

type Responsip struct {
	Lang   language.Tag
	Module string

	EchoContext  context.EchoContext
	GinContext   context.GinContext
	FiberContext context.FiberContext
	MuxContext   context.MuxContext
	// contains filtered or unexported fields
}

func (*Responsip) CreatedResponse

func (r *Responsip) CreatedResponse(ctx Context, message string, data interface{}) error

CreatedResponse returns

func (*Responsip) GetLocalizedString

func (r *Responsip) GetLocalizedString(ctx Context, messageID string) string

func (*Responsip) InitLocalizer

func (r *Responsip) InitLocalizer() error

func (*Responsip) NoContentResponse

func (r *Responsip) NoContentResponse(ctx Context, message string) error

NoContentResponse returns

func (*Responsip) SuccessResponse

func (r *Responsip) SuccessResponse(ctx Context, message string, data interface{}) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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