Documentation ¶
Index ¶
Constants ¶
const RetrieveCallDefault = 3
Variables ¶
var ( StatusGroupUnknown = statusGroupUnknown StatusSubgroupUnknown = statusSubgroupUnknown )
Functions ¶
func ParseGroup ¶
ParseGroup attempts to convert a string to a Group
func ParseSubgroup ¶
ParseSubgroup attempts to convert a string to a Subgroup
func StatusTextFunc ¶
Types ¶
type CallInfo ¶
func RetrieveCallInfo ¶
func RetrieveCallInfo() *CallInfo
retrieves the stack trace of the current call in runtime with 3 skip step
func RetrieveCallInfoSkip ¶
retrieves the stack trace of the current call in runtime with n skip step
type Error ¶
type Error struct { Group Group Subgroup Subgroup Err error Code int Message string Details string Info *CallInfo }
Error
func GroupTypeUnknown ¶
GroupTypeUnknown is a AVA Error
func GroupTypeUnknownSkip ¶
GroupTypeUnknownSkip is a AVA Error
func SubgroupTypeUnknown ¶
SubgroupTypeUnknown is a AVA Error
func SubgroupTypeUnknownSkip ¶
SubgroupTypeUnknownSkip is a AVA Error
type ErrorHTTP ¶
type ErrorHTTP struct { HTTPStatus int `json:"status"` Code int `json:"code"` Message string `json:"message"` }
ErrorHTTP contains custom code, errors message, and HTTP status code.
func (*ErrorHTTP) WriteToResponse ¶
func (e *ErrorHTTP) WriteToResponse(w http.ResponseWriter)
WriteToResponse writes response for the Error HTTP.
type ErrorHTTPI ¶
type ErrorHTTPI interface { ToJSON() string Error() string WriteToResponse(w http.ResponseWriter) }
AVA HTTP Error Interface
type Group ¶
type Group int32
Group x ENUM( General Model Serializer Encoder Server Config Logger File Blockchain Database Http Microservice MessageCoder Time ApiTime Transport Compress IO Crypto QR Validator String Utils Client GeneratorEnum Router Registry Tools Unknown )
const ( // GroupGeneral is a Group of type General GroupGeneral Group = iota // GroupModel is a Group of type Model GroupModel // GroupSerializer is a Group of type Serializer GroupSerializer // GroupEncoder is a Group of type Encoder GroupEncoder // GroupServer is a Group of type Server GroupServer // GroupConfig is a Group of type Config GroupConfig // GroupLogger is a Group of type Logger GroupLogger // GroupFile is a Group of type File GroupFile // GroupBlockchain is a Group of type Blockchain GroupBlockchain // GroupDatabase is a Group of type Database GroupDatabase // GroupHttp is a Group of type Http GroupHttp // GroupMicroservice is a Group of type Microservice GroupMicroservice // GroupMessageCoder is a Group of type MessageCoder GroupMessageCoder // GroupTime is a Group of type Time GroupTime // GroupApiTime is a Group of type ApiTime GroupApiTime // GroupTransport is a Group of type Transport GroupTransport // GroupCompress is a Group of type Compress GroupCompress // GroupIO is a Group of type IO GroupIO // GroupCrypto is a Group of type Crypto GroupCrypto // GroupQR is a Group of type QR GroupQR // GroupValidator is a Group of type Validator GroupValidator // GroupString is a Group of type String GroupString // GroupUtils is a Group of type Utils GroupUtils // GroupClient is a Group of type Client GroupClient // GroupGeneratorEnum is a Group of type GeneratorEnum GroupGeneratorEnum // GroupRouter is a Group of type Router GroupRouter // GroupRegistry is a Group of type Registry GroupRegistry // GroupTools is a Group of type Tools GroupTools // GroupUnknown is a Group of type Unknown GroupUnknown )
func (Group) MarshalText ¶
MarshalText implements the text marshaller method
type Subgroup ¶
type Subgroup int32
Subgroup x ENUM( General DiscoveryService BrokerService CircuitBreakerService MetricsService Client Server Selected Serializer Hash QR Version Config Time Validator String Logger File GRPC NET URL Codec Event AVAEnum Unknown )
const ( // SubgroupGeneral is a Subgroup of type General SubgroupGeneral Subgroup = iota // SubgroupDiscoveryService is a Subgroup of type DiscoveryService SubgroupDiscoveryService // SubgroupBrokerService is a Subgroup of type BrokerService SubgroupBrokerService // SubgroupCircuitBreakerService is a Subgroup of type CircuitBreakerService SubgroupCircuitBreakerService // SubgroupMetricsService is a Subgroup of type MetricsService SubgroupMetricsService // SubgroupClient is a Subgroup of type Client SubgroupClient // SubgroupServer is a Subgroup of type Server SubgroupServer // SubgroupSelected is a Subgroup of type Selected SubgroupSelected // SubgroupSerializer is a Subgroup of type Serializer SubgroupSerializer // SubgroupHash is a Subgroup of type Hash SubgroupHash // SubgroupQR is a Subgroup of type QR SubgroupQR // SubgroupVersion is a Subgroup of type Version SubgroupVersion // SubgroupConfig is a Subgroup of type Config SubgroupConfig // SubgroupTime is a Subgroup of type Time SubgroupTime // SubgroupValidator is a Subgroup of type Validator SubgroupValidator // SubgroupString is a Subgroup of type String SubgroupString // SubgroupLogger is a Subgroup of type Logger SubgroupLogger // SubgroupFile is a Subgroup of type File SubgroupFile // SubgroupGRPC is a Subgroup of type GRPC SubgroupGRPC // SubgroupNET is a Subgroup of type NET SubgroupNET // SubgroupURL is a Subgroup of type URL SubgroupURL // SubgroupCodec is a Subgroup of type Codec SubgroupCodec // SubgroupEvent is a Subgroup of type Event SubgroupEvent // SubgroupAVAEnum is a Subgroup of type AVAEnum SubgroupAVAEnum // SubgroupUnknown is a Subgroup of type Unknown SubgroupUnknown )
func (Subgroup) MarshalText ¶
MarshalText implements the text marshaller method