Discover Packages
github.com/quangdangfit/log-service
internal
dto
package
Version:
v0.0.0-...-7bc4f86
Opens a new window with list of versions in this module.
Published: Sep 8, 2023
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type AddLogReq struct {
ServiceName string `json:"service_name" validate:"required"`
Level string `json:"level" validate:"required"`
Content []byte `json:"content" validate:"required"`
TraceId string `json:"trace_id" validate:"required"`
}
type GetLogsReq struct {
ServiceName string `json:"service_name,omitempty"`
Level string `json:"level,omitempty"`
TraceId string `json:"trace_id,omitempty"`
CreatedFrom int64 `json:"created_from,omitempty"`
CreatedTo int64 `json:"created_to,omitempty"`
Sort *SortReq `json:"sort,omitempty"`
}
type Log struct {
Id string `json:"id"`
ServiceName string `json:"service_name"`
Level string `json:"level"`
Content []byte `json:"content"`
TraceId string `json:"trace_id"`
CreatedAt time .Time `json:"created_at"`
}
type PaginationReq struct {
}
type PaginationRes struct {
}
type SortReq struct {
Field string `json:"field,omitempty"`
Desc bool `json:"desc,omitempty"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.