debug

package module
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2023 License: Apache-2.0 Imports: 4 Imported by: 2

README

README

This README would normally document whatever steps are necessary to get your application up and running.

What is this repository for?
How do I get set up?
  • Summary of set up
  • Configuration
  • Dependencies
  • Database configuration
  • How to run tests
  • Deployment instructions
Contribution guidelines
  • Writing tests
  • Code review
  • Other guidelines
Who do I talk to?
  • Repo owner or admin
  • Other community or team contact

Documentation

Index

Constants

View Source
const GetErrorFromTrace = "getErrorFromTrace"

Variables

This section is empty.

Functions

func InitHandlers

func InitHandlers(router transport.IRouter, m Debug)

Types

type Builder

type Builder interface {
	SetTraceRepo(traceRepo TraceApi) Builder
	Build() (Debug, error)
}

type Debug

type Debug interface {
	GetErrorFromTrace(c context.Context, req GetTraceErrorResponseReq) ([]TraceError, servicereply.ServiceReply)
}

type GetTraceErrorResponseReq

type GetTraceErrorResponseReq struct {
	TraceId string `json:"traceId"`
}

type TraceApi

type TraceApi interface {
	GetErrorFromTrace(c context.Context, req GetTraceErrorResponseReq) ([]TraceError, servicereply.ServiceReply)
}

type TraceError

type TraceError struct {
	Status            string          `json:"status"`
	UserMessageId     string          `json:"userMessageId"`
	FullResponseTrace json.RawMessage `json:"fullResponseTrace"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳