services

package
v0.0.0-...-f501c68 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2019 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Colaudit = "auditEvents"
)
View Source
var Colhistory = "historyEvents"

Functions

func AddAuditEvent

func AddAuditEvent(audit bson.M) error

func AddHistoryEvent

func AddHistoryEvent(historyEvent bson.M) error

func AddOperationAudit

func AddOperationAudit(params graphql.ResolveParams, no string, ne string, errExecOper error)

func GetAuditEvents

func GetAuditEvents() (*[]models.AuditEvent, error)

func GetConsultGraphql

func GetConsultGraphql(r *http.Request) (*models.RequestOptions, error)

func GetHistoryEvent

func GetHistoryEvent(id primitive.ObjectID) (*models.HistoryEvent, error)

func GetHistoryEvents

func GetHistoryEvents() (*[]models.HistoryEvent, error)

func GetRemoteIp

func GetRemoteIp(r *http.Request) (string, error)

func RemoveHistoryEvent

func RemoveHistoryEvent(idHistoryEvent primitive.ObjectID) error

func ValidatePermissionToOperation

func ValidatePermissionToOperation(params graphql.ResolveParams) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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