model

package
Version: v0.0.0-...-1f1ddb2 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2021 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppContext

type AppContext struct {
	echo.Context
	UserName     string `json:"username"`
	Admin        bool   `json:"admin"`
	UserGroup    string `json:"usergroup"`
	ExternalAuth bool   `json:"externalauth"`
}

type CallElement

type CallElement struct {
	ID          float64 `json:"id"`
	Sid         string  `json:"sid"`
	DstHost     string  `json:"dstHost"`
	SrcHost     string  `json:"srcHost"`
	DstID       string  `json:"dstId"`
	SrcID       string  `json:"srcId"`
	SrcIP       string  `json:"srcIp"`
	DstIP       string  `json:"dstIp"`
	SrcPort     float64 `json:"srcPort"`
	AliasSrc    string  `json:"aliasSrc"`
	AliasDst    string  `json:"aliasDst"`
	DstPort     float64 `json:"dstPort"`
	Method      string  `json:"method"`
	MethodText  string  `json:"method_text"`
	CreateDate  int64   `json:"create_date"`
	Protocol    float64 `json:"protocol"`
	MsgColor    string  `json:"msg_color"`
	Table       string  `json:"table"`
	RuriUser    string  `json:"ruri_user"`
	Destination int     `json:"destination"`
	MicroTs     int64   `json:"micro_ts"`
}

type CorrelationMap

type CorrelationMap struct {
	SourceField   string `json:"source_field"`
	LookupID      int    `json:"lookup_id"`
	LookupProfile string `json:"lookup_profile"`
	LookupField   string `json:"lookup_field"`
	LookupRange   []int  `json:"lookup_range"`
}

type DashBoardElement

type DashBoardElement struct {
	CssClass string  `json:"cssclass"`
	Href     string  `json:"href"`
	Id       string  `json:"id"`
	Owner    string  `json:"owner"`
	Name     string  `json:"name"`
	Param    string  `json:"param"`
	Shared   bool    `json:"shared"`
	Type     int     `json:"type"`
	Weight   float64 `json:"weight"`
}

swagger:model DashboardElements

type DataHeader

type DataHeader struct {
	Callid     string `json:"callid"`
	Method     string `json:"method"`
	ToTag      string `json:"to_tag"`
	ToUser     string `json:"to_user"`
	FromTag    string `json:"from_tag"`
	PidUser    string `json:"pid_user"`
	AuthUser   string `json:"auth_user"`
	FromUser   string `json:"from_user"`
	RuriUser   string `json:"ruri_user"`
	UserAgent  string `json:"user_agent"`
	RuriDomain string `json:"ruri_domain"`
}

type DatabasesMap

type DatabasesMap struct {
	Value string `json:"value"`
	Name  string `json:"name"`
}

type GetUser

type GetUser struct {
	// count
	Count int `json:"count"`
	// the data
	Data []*TableUser `json:"data"`
}

swagger:model ListUsers

type GrafanaObject

type GrafanaObject struct {
	Param struct {
		Limit    int             `json:"limit"`
		Search   string          `json:"search"`
		Server   string          `json:"server"`
		Timezone json.RawMessage `json:"timezone"`
	} `json:"param"`
	Timestamp struct {
		From int64 `json:"from"`
		To   int64 `json:"to"`
	} `json:"timestamp"`
}

type GrafanaPoint

type GrafanaPoint struct {
	Attemps     int     `json:"attemps"`
	Partid      int     `json:"partid"`
	Group       int     `json:"group"`
	Id          int     `json:"id"`
	Reporttime  int64   `json:"reporttime"`
	Table       string  `json:"table"`
	Tag1        string  `json:"tag1"`
	Transaction string  `json:"transaction"`
	Countername string  `json:"countername"`
	Value       float64 `json:"value"`
}

Salutation : here you tell us what Salutation is Printer : what is this? Greet : describe what this function does CreateMessage : describe what this function does

type GrafanaResponse

type GrafanaResponse struct {
	Total int             `json:"total"`
	D     json.RawMessage `json:"data"`
}

type HTTPAUTHResp

type HTTPAUTHResp struct {
	Auth bool      `json:"auth" validate:"required"`
	Data TableUser `json:"data" validate:"required"`
}

type HepTable

type HepTable struct {
	Id             int             `json:"id"`
	Sid            string          `json:"sid"`
	CreatedDate    time.Time       `gorm:"column:create_date" json:"create_date"`
	ProtocolHeader json.RawMessage `gorm:"column:protocol_header" json:"protocol_header"`
	DataHeader     json.RawMessage `gorm:"column:data_header" json:"data_header"`
	Raw            string          `gorm:"column:raw" json:"raw"`
	DBNode         string          `gorm:"column:-" json:"dbnode"`
	Node           string          `gorm:"column:-" json:"node"`
	Profile        string          `gorm:"column:-" json:"profile"`
}

type InfluxDatabasesMeasurements

type InfluxDatabasesMeasurements struct {
	Name string `json:"name"`
}

type InfluxDatabasesPolices

type InfluxDatabasesPolices struct {
	Name string `json:"name"`
}

type Message

type Message struct {
	Id     int            `json:"id"`
	Sid    string         `json:"sid"`
	ProtoH ProtocolHeader `json:"protocol_header"`
	DataH  DataHeader     `json:"data_header"`
	Raw    string         `json:"raw"`
}

type PrometheusObject

type PrometheusObject struct {
	Param struct {
		Limit     int      `json:"limit"`
		Precision int      `json:"precision"`
		Metrics   []string `json:"metrics"`
		Total     bool     `json:"total"`
	} `json:"param"`
	Timestamp struct {
		From int64 `json:"from"`
		To   int64 `json:"to"`
	} `json:"timestamp"`
}

type PrometheusPoint

type PrometheusPoint struct {
	Attemps     int     `json:"attemps"`
	Partid      int     `json:"partid"`
	Group       int     `json:"group"`
	Id          int     `json:"id"`
	Reporttime  int64   `json:"reporttime"`
	Table       string  `json:"table"`
	Tag1        string  `json:"tag1"`
	Transaction string  `json:"transaction"`
	Countername string  `json:"countername"`
	Value       float64 `json:"value"`
}

Salutation : here you tell us what Salutation is Printer : what is this? Greet : describe what this function does CreateMessage : describe what this function does

type PrometheusResponse

type PrometheusResponse struct {
	Total int             `json:"total"`
	D     json.RawMessage `json:"data"`
}

type ProtocolHeader

type ProtocolHeader struct {
	DstIP          string `json:"dstIp"`
	SrcIP          string `json:"srcIp"`
	DstPort        int    `json:"dstPort"`
	SrcPort        int    `json:"srcPort"`
	Protocol       int    `json:"protocol"`
	CaptureID      int    `json:"captureId"`
	CapturePass    string `json:"capturePass"`
	PayloadType    int    `json:"payloadType"`
	TimeSeconds    int    `json:"timeSeconds"`
	TimeUseconds   int    `json:"timeUseconds"`
	ProtocolFamily int    `json:"protocolFamily"`
}

type RemoteObject

type RemoteObject struct {
	Param struct {
		Limit    int             `json:"limit"`
		Search   string          `json:"search"`
		Server   string          `json:"server"`
		Timezone json.RawMessage `json:"timezone"`
	} `json:"param"`
	Timestamp struct {
		From int64 `json:"from"`
		To   int64 `json:"to"`
	} `json:"timestamp"`
}

type RemotePoint

type RemotePoint struct {
	Attemps     int     `json:"attemps"`
	Partid      int     `json:"partid"`
	Group       int     `json:"group"`
	Id          int     `json:"id"`
	Reporttime  int64   `json:"reporttime"`
	Table       string  `json:"table"`
	Tag1        string  `json:"tag1"`
	Transaction string  `json:"transaction"`
	Countername string  `json:"countername"`
	Value       float64 `json:"value"`
}

Salutation : here you tell us what Salutation is Printer : what is this? Greet : describe what this function does CreateMessage : describe what this function does

type RemoteResponse

type RemoteResponse struct {
	Total int             `json:"total"`
	D     json.RawMessage `json:"data"`
}

type SearchObject

type SearchObject struct {
	// required: true
	Param struct {
		Transaction struct {
		} `json:"transaction"`
		// this controls the number of records to display
		// example: 200
		// required: true
		Limit int `json:"limit"`
		// this control the type of search one can perform
		// type: string
		// format: binary
		// example: `{"1_call":[{"name":"limit","value":"10","type":"string","hepid":1}]}`
		Search json.RawMessage `json:"search"`
		// this control the type of search one can perform
		// type: boolean
		// example: false
		OrLogic bool `json:"orlogic"`
		// ips to be removed from search
		// required: false
		// type: array
		// items:
		//  type: string
		// 	example: ["192.1698.10.20"]
		WhiteList []string `json:"whitelist"`
		// location
		// required: false
		// type: object
		Location struct {
			Node []string `json:node`
		} `json:"location"`
		// timezone settings
		// type: object
		// default: null
		Timezone struct {
			Value int    `json:"value"`
			Name  string `json:"name"`
		} `json:"timezone"`
	} `json:"param"`
	// this control the time range for used for search
	Timestamp struct {
		// current timestamp in miliseconds
		// required :true
		// example: 1581793200000
		From int64 `json:"from"`
		// current timestamp in miliseconds
		// required :true
		// example: 1581879599000
		To int64 `json:"to"`
	} `json:"timestamp"`
}

swagger:model SearchCallData

type SecondData

type SecondData struct {
	Messages []Message `json:"messages"`
}

type StatisticObject

type StatisticObject struct {
	Param struct {
		Limit     int `json:"limit"`
		Precision int `json:"precision"`
		Query     []struct {
			Main      string   `json:"main"`
			Database  string   `json:"database"`
			Retention string   `json:"retention"`
			Rawquery  string   `json:"rawquery"`
			Type      []string `json:"type"`
			Tag       []string `json:"tag"`
		} `json:"query"`
		Bfrom int  `json:"bfrom"`
		Total bool `json:"total"`
	} `json:"param"`
	Timestamp struct {
		From int64 `json:"from"`
		To   int64 `json:"to"`
	} `json:"timestamp"`
}

type StatisticPoint

type StatisticPoint struct {
	Attemps     int     `json:"attemps"`
	Partid      int     `json:"partid"`
	Group       int     `json:"group"`
	Id          int     `json:"id"`
	Reporttime  int64   `json:"reporttime"`
	Table       string  `json:"table"`
	Tag1        string  `json:"tag1"`
	Transaction string  `json:"transaction"`
	Countername string  `json:"countername"`
	Value       float64 `json:"value"`
}

type StatisticResponse

type StatisticResponse struct {
	Total int             `json:"total"`
	D     json.RawMessage `json:"data"`
}

type StatisticSearchObject

type StatisticSearchObject struct {
	Param struct {
		Limit     int `json:"limit"`
		Precision int `json:"precision"`
		Search    struct {
			Database string `json:"database"`
		} `json:"search`
		Bfrom int  `json:"bfrom"`
		Total bool `json:"total"`
	} `json:"param"`
	Timestamp struct {
		From int64 `json:"from"`
		To   int64 `json:"to"`
	} `json:"timestamp"`
}

type SuccessfulResponse

type SuccessfulResponse struct {
	// count elements in data
	//
	// required: true
	Count int `json:"count"`
	// data in JSON format
	// type: object
	// required: true
	Data json.RawMessage `json:"data"`
	// the message for user
	//
	// required: true
	Message string `json:"message"`
}

swagger:model SuccessResponse

type TableAgentLocationSession

type TableAgentLocationSession struct {
	ID         int       `gorm:"column:id;primary_key;AUTO_INCREMENT" json:"-"`
	GUID       string    `gorm:"column:guid;type:uuid" json:"uuid" validate:"required"`
	Gid        int       `gorm:"column:gid;type:int" json:"gid" validate:"required"`
	Host       string    `gorm:"column:host;type:varchar(250);default:'127.0.0.1'" json:"host" validate:"required"`
	Port       int       `gorm:"column:port;type:int;default:8080" json:"port"`
	Protocol   string    `gorm:"column:protocol;type:varchar(50);default:'log'" json:"protocol"`
	Path       string    `gorm:"column:path;type:varchar(250);default:'/api/search'" json:"path"`
	Node       string    `gorm:"column:node;type:varchar(100);default:'testnode'" json:"node"`
	Type       string    `gorm:"column:type;type:varchar(200);default:'type'" json:"type"`
	TTL        int       `gorm:"-" json:"ttl"`
	CreateDate time.Time `gorm:"column:create_date;default:current_timestamp;not null" json:"create_date"`
	ExpireDate time.Time `gorm:"column:expire_date;not null" json:"expire_date"`
	Active     int       `gorm:"column:active;type:int;default:1" json:"active"`
}

swagger:model AgentsLocation

func (TableAgentLocationSession) TableName

func (TableAgentLocationSession) TableName() string

type TableAlias

type TableAlias struct {
	Id   int    `gorm:"column:id;primary_key;AUTO_INCREMENT" json:"id"`
	GUID string `gorm:"column:guid;type:uuid" json:"guid"`
	// alias name
	// example: verizon
	// required: true
	Alias string `gorm:"column:alias;type:varchar(40)" json:"alias" validate:"required"`
	// example: 192.168.10.20
	// required: true
	IP string `gorm:"column:ip;type:varchar(60)" json:"ip" validate:"required,ip"`
	// example: 5060
	// required: true
	Port *int `gorm:"column:port;type:int;default:0" json:"port" validate:"required,numeric"`
	// example: 32
	// required: true
	Mask *int `gorm:"column:mask;type:int" json:"mask" validate:"required,numeric"`
	// example: 0
	// required: true
	CaptureID  string    `gorm:"column:captureID;type:varchar(20)" json:"captureID" validate:"required"`
	Status     *bool     `gorm:"column:status;type:bool" json:"status" validate:"required"`
	CreateDate time.Time `gorm:"column:create_date;default:current_timestamp;not null" json:"-"`
}

swagger:model AliasStruct

func (TableAlias) TableName

func (TableAlias) TableName() string

type TableApplications

type TableApplications struct {
	ID                 int       `gorm:"column:id;primary_key;AUTO_INCREMENT" json:"-"`
	GUID               string    `gorm:"column:guid;type:uuid" json:"guid" validate:"required"`
	NameApplication    string    `gorm:"column:name;type:varchar(50);unique_index:idx_name_host;not null" json:"application_name" validate:"required"`
	HostApplication    string    `gorm:"column:host;type:varchar(100);unique_index:idx_name_host;not null" json:"application_host" validate:"required"`
	VersionApplication string    `gorm:"column:version;type:varchar(100);not null" json:"application_version" validate:"required"`
	CreatedAt          time.Time `gorm:"column:created_at;default:current_timestamp;not null" json:"-"`
}

table app

func (TableApplications) TableName

func (TableApplications) TableName() string

table name

type TableAuthToken

type TableAuthToken struct {
	ID            int             `gorm:"column:id;primary_key;AUTO_INCREMENT" json:"-"`
	GUID          string          `gorm:"column:guid;type:uuid" json:"guid"`
	UserGUID      string          `gorm:"column:creator_guid;type:uuid" json:"creator_guid"`
	Name          string          `gorm:"column:name;type:varchar(100)" json:"name" validate:"required"`
	Token         string          `gorm:"column:token;type:varchar(250)" json:"-"`
	UserObject    json.RawMessage `gorm:"column:user_object;type:json" json:"user_object"`
	IPAddress     string          `gorm:"column:ip_address;type:inet" json:"ip_address"`
	CreateDate    time.Time       `gorm:"column:create_date;default:current_timestamp;not null" json:"create_date"`
	LastUsageDate time.Time       `gorm:"column:lastusage_date;not null" json:"lastusage_date"`
	ExpireDate    time.Time       `gorm:"column:expire_date;not null" json:"expire_date" validate:"required"`
	UsageCalls    int             `gorm:"column:usage_calls;type:int;default:1" json:"usage_calls"`
	LimitCalls    int             `gorm:"column:limit_calls;type:int;default:1000" json:"limit_calls"`
	Active        *bool           `gorm:"column:active;type:bool" json:"active" validate:"required"`
}

swagger:model AuthToken

func (TableAuthToken) TableName

func (TableAuthToken) TableName() string

type TableGlobalSettings

type TableGlobalSettings struct {
	Id int `gorm:"column:id;primary_key;AUTO_INCREMENT" json:"-"`
	// should be a unique value representing user
	// example: e71771a2-1ea0-498f-8d27-391713e10664
	// required: true
	GUID string `gorm:"column:guid;type:uuid" json:"guid" validate:"required"`
	// example: 1
	// required: true
	PartId int `gorm:"column:partid;type:int;not null" json:"partid" validate:"required"`
	// example: profile
	// required: true
	Category string `gorm:"column:category;type:varchar(100);not null" json:"category" validate:"required"`

	CreateDate time.Time `gorm:"column:create_date;default:current_timestamp;not null" json:"-"`
	// example: homer
	// required: true
	Param string `gorm:"column:param;type:varchar(100);not null" json:"param" validate:"required"`

	Data json.RawMessage `gorm:"column:data;type:json" json:"data"`
}

swagger:model GlobalSettingsStruct

func (TableGlobalSettings) TableName

func (TableGlobalSettings) TableName() string

type TableHepsubSchema

type TableHepsubSchema struct {
	ID         int             `gorm:"column:id;primary_key;AUTO_INCREMENT" json:"-"`
	GUID       string          `gorm:"column:guid;type:uuid" json:"guid" validate:"required"`
	Profile    string          `gorm:"column:profile;type:varchar(100)" json:"profile" validate:"required"`
	Hepid      int             `gorm:"column:hepid;type:varchar(250)" json:"hepid" validate:"required"`
	HepAlias   string          `gorm:"column:hep_alias;type:varchar(250)" json:"hep_alias" validate:"required"`
	Version    int             `gorm:"column:version;type:varchar(50)" json:"version" validate:"required"`
	Mapping    json.RawMessage `gorm:"column:mapping" json:"mapping" validate:"required"`
	CreateDate time.Time       `gorm:"column:create_date;default:current_timestamp;not null" json:"-"`
}

swagger:model HepsubSchema

func (TableHepsubSchema) TableName

func (TableHepsubSchema) TableName() string

type TableMappingSchema

type TableMappingSchema struct {
	ID                 int             `gorm:"column:id;primary_key;AUTO_INCREMENT" json:"-"`
	GUID               string          `gorm:"column:guid;type:uuid" json:"guid"`
	Profile            string          `gorm:"column:profile;type:varchar(100);not null" json:"profile" validate:"required"`
	Hepid              int             `gorm:"column:hepid;type:int;not null" json:"hepid" validate:"required"`
	HepAlias           string          `gorm:"column:hep_alias;type:varchar(100)" json:"hep_alias"`
	PartID             int             `gorm:"column:partid;type:int;int:10;not null" json:"partid" validate:"required"`
	Version            int             `gorm:"column:version;type:int;not null" json:"version" validate:"required"`
	Retention          int             `gorm:"column:retention;type:int;not null" json:"retention" validate:"required"`
	PartitionStep      int             `gorm:"column:partition_step;int;not null" json:"partition_step" validate:"required"`
	CreateIndex        json.RawMessage `gorm:"column:create_index;default:'{}';type:json" json:"create_index"`
	CreateTable        string          `gorm:"column:create_table;default:'CREATE TABLE';type:text" json:"create_table"`
	CorrelationMapping json.RawMessage `gorm:"column:correlation_mapping;default:'{}';type:json" json:"correlation_mapping"`
	FieldsMapping      json.RawMessage `gorm:"column:fields_mapping;default:'{}';type:json" json:"fields_mapping"`
	MappingSettings    json.RawMessage `gorm:"column:mapping_settings;default:'{}';type:json" json:"fields_settings"`
	SchemaMapping      json.RawMessage `gorm:"column:schema_mapping;default:'{}';type:json" json:"schema_mapping"`
	SchemaSettings     json.RawMessage `gorm:"column:schema_settings;default:'{}';type:json" json:"schema_settings"`
	CreateDate         time.Time       `gorm:"column:create_date;default:current_timestamp;not null" json:"-"`
}

swagger:model MappingSchema

func (TableMappingSchema) TableName

func (TableMappingSchema) TableName() string

type TableRawData

type TableRawData struct {
	Id int `gorm:"column:id;primary_key;AUTO_INCREMENT" json:"id"`
	// should be a unique value representing user
	// example: e71771a2-1ea0-498f-8d27-391713e10664
	// required: true
	SID string `gorm:"column:sid;type:varchar" json:"sid" validate:"required"`
	//Create data
	CreateDate time.Time `gorm:"column:create_date;default:current_timestamp;not null" json:"create_date"`
	//protocol_header
	ProtocolHeader json.RawMessage `gorm:"column:protocol_header;type:jsonb;not null" json:"protocol_header"`
	//data_header
	DataHeader json.RawMessage `gorm:"column:data_header;type:jsonb;not null" json:"data_header"`
	//raw
	Raw json.RawMessage `gorm:"column:raw;type:jsonb;not null" json:"raw"`
}

swagger:model TableRtpStatsV2

func (TableRawData) TableName

func (TableRawData) TableName() string

type TableUser

type TableUser struct {
	Id int `gorm:"column:id;primary_key;AUTO_INCREMENT" json:"-"`
	// required: true
	UserName string `gorm:"column:username;type:varchar(100);unique_index:idx_username;not null" json:"username" validate:"required"`
	// example: 10
	// required: true
	PartId int `gorm:"column:partid;type:int;default:10;not null" json:"partid" validate:"required"`
	// required: true
	Email string `gorm:"column:email;type:varchar(250);not null" json:"email" validate:"required,email"`
	// required: true
	Password string `gorm:"-" json:"password"`

	FirstName string `gorm:"column:firstname;type:varchar(50);not null" json:"firstname" validate:"required"`
	// required: true
	LastName string `gorm:"column:lastname;type:varchar(50);not null" json:"lastname" validate:"required"`
	// required: true
	// example: NOC
	Department string `gorm:"column:department;type:varchar(50);not null" json:"department" validate:"required"`
	// required: true
	// example: admin
	UserGroup    string `gorm:"column:usergroup;type:varchar(250);not null" json:"usergroup" validate:"required"`
	IsAdmin      bool   `gorm:"-" json:"-"`
	ExternalAuth bool   `gorm:"-" json:"-"`

	Hash string `gorm:"column:hash;type:varchar(128);not null" json:"-"`
	// should be a unique value representing user
	// example: e71771a2-1ea0-498f-8d27-391713e10664
	// required: true
	GUID      string    `gorm:"column:guid;type:varchar(50);not null" json:"guid" validate:"required"`
	CreatedAt time.Time `gorm:"column:created_at;default:current_timestamp;not null" json:"-"`
}

swagger:model CreateUserStruct

func (TableUser) TableName

func (TableUser) TableName() string

type TableUserSettings

type TableUserSettings struct {
	Id int `gorm:"column:id;primary_key;AUTO_INCREMENT" json:"id"`
	// should be a unique value representing user
	// example: e71771a2-1ea0-498f-8d27-391713e10664
	// required: true
	GUID string `gorm:"column:guid;type:uuid" json:"guid" validate:"required"`
	// required: true
	UserName string `gorm:"column:username;type:varchar(100);not null" json:"username" validate:"required"`
	// example: 10
	// required: true
	PartId int `gorm:"column:partid;type:int;not null" json:"partid" validate:"required"`
	// example: profile
	// required: true
	Category string `gorm:"column:category;type:varchar(100);not null" json:"category" validate:"required"`

	CreateDate time.Time `gorm:"column:create_date;default:current_timestamp;not null" json:"-"`
	// example: homer
	// required: true
	Param string `gorm:"column:param;type:varchar(100);not null" json:"param" validate:"required"`

	Data json.RawMessage `gorm:"column:data;type:json" json:"data"`
}

swagger:model UserSettings

func (TableUserSettings) TableName

func (TableUserSettings) TableName() string

type TableVersions

type TableVersions struct {
	Id int `gorm:"column:id;primary_key;AUTO_INCREMENT" json:"-"`
	// required: true
	NameTable string `gorm:"column:table_name;type:varchar(50);not null" json:"table_name" validate:"required"`
	// example: 10
	VersionTable int       `gorm:"column:table_version;type:int;default:10;not null" json:"table_version" validate:"required"`
	CreatedAt    time.Time `gorm:"column:created_at;default:current_timestamp;not null" json:"-"`
}

func (TableVersions) TableName

func (TableVersions) TableName() string

type TransactionResponse

type TransactionResponse struct {
	Total int        `json:"total"`
	D     SecondData `json:"data"`
}

type UserCreateSuccessfulResponse

type UserCreateSuccessfulResponse struct {
	// count
	Data string `json:"data"`
	// the data
	Message string `json:"message"`
}

swagger:model SuccessResponse

type UserTokenBadResponse

type UserTokenBadResponse struct {
	// statuscode
	StatusCode int `json:"statuscode"`
	// errot
	Error string `json:"error"`
	// message
	Message string `json:"message"`
}

swagger:model FailureResponse

type UserTokenSuccessfulResponse

type UserTokenSuccessfulResponse struct {
	// the token
	Token string `json:"token"`
	// the uuid
	Scope string `json:"scope"`
	// the uuid
	User struct {
		Admin bool `json:"admin"`
	} `json:"user"`
}

swagger:model UserLoginSuccessResponse

type UserloginDetails

type UserloginDetails struct {
	// example: admin
	// required: true
	Username string `json:"username" validate:"required"`
	// example: sipcapture
	// required: true
	Password string `json:"password" validate:"required"`
}

swagger:model UserLogin

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL