Documentation
¶
Index ¶
- type TxlogSchemaJson
- type TxlogSchemaJsonEntityPath
- type TxlogSchemaJsonEntityType
- type TxlogSchemaJsonStatus
- type TxlogSchemaJsonTransactionDetails
- type TxlogSchemaJsonTransactionDetailsMethod
- type TxlogSchemaJsonTransactionDetailsRequest
- type TxlogSchemaJsonTransactionDetailsRequestUserAgent
- type TxlogSchemaJsonTransactionDetailsResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TxlogSchemaJson ¶
type TxlogSchemaJson struct { // action performed on entity, pick from permissions Action string `json:"action"` // actor of transaction Actor *string `json:"actor,omitempty"` // action performed on entity, pick from permissions EntityPath TxlogSchemaJsonEntityPath `json:"entity_path"` // type of entity EntityType TxlogSchemaJsonEntityType `json:"entity_type"` // status of transaction Status TxlogSchemaJsonStatus `json:"status"` // timestamp of transaction Timestamp float64 `json:"timestamp"` // HTTP details of transaction TransactionDetails TxlogSchemaJsonTransactionDetails `json:"transaction_details"` }
func (*TxlogSchemaJson) Marshal ¶
func (j *TxlogSchemaJson) Marshal() ([]byte, error)
func (*TxlogSchemaJson) UnmarshalJSON ¶
func (j *TxlogSchemaJson) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type TxlogSchemaJsonEntityPath ¶
type TxlogSchemaJsonEntityPath struct { // collection name, must also have database Collection *string `json:"collection,omitempty"` // database name Database string `json:"database"` }
action performed on entity, pick from permissions
func (*TxlogSchemaJsonEntityPath) UnmarshalJSON ¶
func (j *TxlogSchemaJsonEntityPath) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type TxlogSchemaJsonEntityType ¶
type TxlogSchemaJsonEntityType string
const TxlogSchemaJsonEntityTypeCOLLECTION TxlogSchemaJsonEntityType = "COLLECTION"
const TxlogSchemaJsonEntityTypeDATABASE TxlogSchemaJsonEntityType = "DATABASE"
func (*TxlogSchemaJsonEntityType) UnmarshalJSON ¶
func (j *TxlogSchemaJsonEntityType) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type TxlogSchemaJsonStatus ¶
type TxlogSchemaJsonStatus string
const TxlogSchemaJsonStatusFAILED TxlogSchemaJsonStatus = "FAILED"
const TxlogSchemaJsonStatusSUCCESS TxlogSchemaJsonStatus = "SUCCESS"
func (*TxlogSchemaJsonStatus) UnmarshalJSON ¶
func (j *TxlogSchemaJsonStatus) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type TxlogSchemaJsonTransactionDetails ¶
type TxlogSchemaJsonTransactionDetails struct { // HTTP method of transaction Method TxlogSchemaJsonTransactionDetailsMethod `json:"method"` // request details of transaction Request TxlogSchemaJsonTransactionDetailsRequest `json:"request"` // response details of transaction Response TxlogSchemaJsonTransactionDetailsResponse `json:"response"` // transaction endpoint/url UrlEndpoint string `json:"url_endpoint"` }
HTTP details of transaction
func (*TxlogSchemaJsonTransactionDetails) UnmarshalJSON ¶
func (j *TxlogSchemaJsonTransactionDetails) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type TxlogSchemaJsonTransactionDetailsMethod ¶
type TxlogSchemaJsonTransactionDetailsMethod string
const TxlogSchemaJsonTransactionDetailsMethodDELETE TxlogSchemaJsonTransactionDetailsMethod = "DELETE"
const TxlogSchemaJsonTransactionDetailsMethodGET TxlogSchemaJsonTransactionDetailsMethod = "GET"
const TxlogSchemaJsonTransactionDetailsMethodPATCH TxlogSchemaJsonTransactionDetailsMethod = "PATCH"
const TxlogSchemaJsonTransactionDetailsMethodPOST TxlogSchemaJsonTransactionDetailsMethod = "POST"
func (*TxlogSchemaJsonTransactionDetailsMethod) UnmarshalJSON ¶
func (j *TxlogSchemaJsonTransactionDetailsMethod) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type TxlogSchemaJsonTransactionDetailsRequest ¶
type TxlogSchemaJsonTransactionDetailsRequest struct { // check if actor is authenticated IsAuthenticated bool `json:"is_authenticated"` // payload of HTTP transaction Payload *string `json:"payload,omitempty"` // user-agent of http transaction UserAgent TxlogSchemaJsonTransactionDetailsRequestUserAgent `json:"user-agent,omitempty"` }
request details of transaction
func (*TxlogSchemaJsonTransactionDetailsRequest) UnmarshalJSON ¶
func (j *TxlogSchemaJsonTransactionDetailsRequest) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
type TxlogSchemaJsonTransactionDetailsRequestUserAgent ¶
type TxlogSchemaJsonTransactionDetailsRequestUserAgent map[string]interface{}
user-agent of http transaction
type TxlogSchemaJsonTransactionDetailsResponse ¶
type TxlogSchemaJsonTransactionDetailsResponse struct { // response HTTP status of transaction HttpStatus int `json:"http_status"` // response payload/body of transaction ResponseBody string `json:"response_body"` }
response details of transaction
func (*TxlogSchemaJsonTransactionDetailsResponse) UnmarshalJSON ¶
func (j *TxlogSchemaJsonTransactionDetailsResponse) UnmarshalJSON(b []byte) error
UnmarshalJSON implements json.Unmarshaler.
Click to show internal directories.
Click to hide internal directories.