Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPostAPI ¶
func NewPostAPI(opts ...service.OptionFunc) (service.Service, error)
NewPostAPI new api service
func NewService ¶
func NewService(opts ...service.OptionFunc) (service.Service, error)
NewService new api service
Types ¶
type API ¶
type API struct { ID string `xorm:"id"` Name string `xorm:"name"` ServiceName string `xorm:"service_name"` ServiceVersion string `xorm:"service_version"` Topic string `xorm:"topic"` Status string `xorm:"status"` Version int64 `xorm:"version"` }
API api struct
type PostAPI ¶
type PostAPI struct {
// contains filtered or unexported fields
}
PostAPI api service
type Response ¶
type Response struct { TraceID string `json:"trace_id"` TraceIP string `json:"trace_ip"` Host string `json:"host"` Code uint64 `json:"code"` Namespace string `json:"namespace,omitempty"` Msg string `json:"msg,omitempty"` Result interface{} `json:"result"` }
Response response
Click to show internal directories.
Click to hide internal directories.