structs

package
v1.19.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorInfo added in v1.14.0

type ErrorInfo struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
}

type JsonBody

type JsonBody struct {
	Collection        string      `json:"collection"`
	Reference         string      `json:"reference"`
	Condition         interface{} `json:"condition"`
	Data              interface{} `json:"data"`
	Projection        interface{} `json:"projection"`
	ArrayFilter       interface{} `json:"arrayFilter"`
	Sort              interface{} `json:"sort"`
	Limit             int         `json:"limit"`
	Offset            int         `json:"offset"`
	Timezone          string      `json:"timezone"`
	Atomicity         bool        `json:"atomicity"`
	Duplicate         *bool       `json:"duplicate"`
	Multi             *bool       `json:"multi"`
	Replacement       *bool       `json:"replacement"`
	UpdateFilter      interface{} `json:"updateFilter"`
	FindOne           *bool       `json:"findone"`
	IsInsert          *bool       `json:"isInsert"`
	AggregatePipeline interface{} `json:"aggregatePipeline"`
}

Jsonbody struct is to handle Json body request

type JsonCreateBody

type JsonCreateBody struct {
	Collection string      `json:"collection" example:"collectionName"`
	Condition  interface{} `json:"condition"`
	Data       interface{} `json:"data"`
	Atomicity  bool        `json:"atomicity"`
	Duplicate  *bool       `json:"duplicate"`
}

use swag json create body (create)

type JsonLogBody

type JsonLogBody struct {
	Level    string      `json:"level"`
	Message  interface{} `json:"message"`
	App_id   string      `json:"app_id"`
	App_name string      `json:"app_name"`
}

Jsonbody struct is to handle Json body request

type JsonLogResponseEror

type JsonLogResponseEror struct {
	StatusCode interface{} `json:"statusCode"` // string -> int
	Message    string      `json:"message"`
	Results    interface{} `json:"results"`
}

type JsonReadbody

type JsonReadbody struct {
	Collection string      `json:"collection" example:"collectionName"`
	Condition  interface{} `json:"condition"`
	Projection interface{} `json:"projection"`
	Sort       interface{} `json:"sort"`
	Limit      int         `json:"limit"`
	Offset     int         `json:"offset"`
	Timezone   string      `json:"timezone" example:"+0700"`
}

type JsonResponse

type JsonResponse struct {
	StatusCode interface{} `json:"statusCode"` // string -> int
	Message    string      `json:"message"`
	Results    interface{} `json:"results"`
	SaveStatus bool        `json:"saveStatus"`
	Errors     []ErrorInfo `json:"errors,omitempty"`
}

type JsonService

type JsonService struct {
	Collection        string      `json:"collection"`
	Reference         string      `json:"reference"`
	Condition         interface{} `json:"condition"`
	Data              interface{} `json:"data"`
	Projection        interface{} `json:"projection"`
	ArrayFilter       interface{} `json:"arrayFilter"`
	Sort              interface{} `json:"sort"`
	Limit             int         `json:"limit"`
	Offset            int         `json:"offset"`
	Timezone          string      `json:"timezone"`
	Atomicity         bool        `json:"atomicity"`
	Duplicate         bool        `json:"duplicate"`
	Multi             bool        `json:"multi"`
	Replacement       bool        `json:"replacement"`
	UpdateFilter      interface{} `json:"updateFilter"`
	FindOne           bool        `json:"findone"`
	IsInsert          bool        `json:"isInsert"`
	AggregatePipeline interface{} `json:"aggregatePipeline"`
}

Jsonbody to service

type LogConfiguration

type LogConfiguration struct {
	Server      string `json:"server,omitempty"`
	ServicePath string `json:"servicePath,omitempty"`
	AppId       string `json:"appId,omitempty"`
	AppName     string `json:"appName,omitempty"`
	Level       string `json:"logLevel,omitempty"`
	OnServerLog bool   `json:"onServerLog,omitempty"`
}

type LogrusField

type LogrusField struct {
	Application string `json:"application,omitempty"`
	Module      string `json:"module,omitempty"`
	Method      string `json:"method,omitempty"`
}

type ValidateResponse

type ValidateResponse struct {
	UserId string `json:"userId"`
	AppId  string `json:"appId"`
}

Jump to

Keyboard shortcuts

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