systemmodels

package
v0.0.11-20240702215725... Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AUTOMATED = 0
	USER      = 1
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

type Database struct {
	Name   string `json:"name"`
	Client *mongo.Client
}

type Error

type Error struct {
	Status  int    `json:"status,omitempty"`
	Error   int    `json:"error,omitempty"`
	Message string `json:"message,omitempty"`
}

type Launcher

type Launcher struct {
	Id           string `json:"id"`
	LauncherType int    `json:"type"`
}

type LauncherType

type LauncherType int

type Request

type Request struct {
	Authorization string            `json:"authorization"`
	IP            string            `json:"ip"`
	UserAgent     string            `json:"userAgent"`
	User          *usersmodels.User `json:"user"`
	Params        interface{}       `json:"params"`
	Body          interface{}       `json:"body"`
	Headers       interface{}       `json:"headers"`
	Files         interface{}       `json:"files"`
	Queries       interface{}       `json:"queries"`
}

type Response

type Response struct {
	Code         int         `json:"-"`
	Response     interface{} `json:"response"`
	ResponseTime int64       `json:"response_time"`
}

type Trazability

type Trazability struct {
	Method    string `json:"method"`
	Timestamp string `json:"timestamp"`
}

type ValhallaContext

type ValhallaContext struct {
	Launcher    Launcher
	Trazability Trazability
	Database    Database
	Request     Request
}

Jump to

Keyboard shortcuts

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