Documentation ¶
Index ¶
- Constants
- Variables
- func FromStorageBpmnResource(bpmnResource storage.BpmnResource) string
- func Map[T, U any](slice []T, f func(T) U) []U
- func ToStoragePagination(pagination *Pagination) *storage.Pagination
- func VariableFilterToStorageFilter(filter *VariableFilter) *storage.Filter
- type AuditLog
- type FilterType
- type Incident
- type Instance
- type Job
- type PaginatedAuditLogs
- type PaginatedIncidents
- type PaginatedInstances
- type PaginatedJobs
- type PaginatedProcesses
- type PaginatedVariables
- type Pagination
- type Process
- type Variable
- type VariableFilter
Constants ¶
const RFC3339Milli = "2006-01-02T15:04:05.000Z07:00"
Custom format since it's not found in the time module. Time in RFC3339 format, but with milliseconds (including zero digits)
Variables ¶
var AllFilterType = []FilterType{ FilterTypeIs, FilterTypeIsNot, FilterTypeContains, }
Functions ¶
func FromStorageBpmnResource ¶
func FromStorageBpmnResource(bpmnResource storage.BpmnResource) string
Convert storage bpmn resource to GraphQL bpmn resource containing the base64 encoded BPMN XML file.
func Map ¶
func Map[T, U any](slice []T, f func(T) U) []U
Convert slice of values T to slice of values U by applying function f.
TODO: replace with stdlib equivalent once, if ever, available.
func ToStoragePagination ¶
func ToStoragePagination(pagination *Pagination) *storage.Pagination
Convert GraphQL pagination to storage pagination. Nil value is preserved.
func VariableFilterToStorageFilter ¶
func VariableFilterToStorageFilter(filter *VariableFilter) *storage.Filter
Convert GraphQL variable filter to storage filter. Nil value is preserved.
Types ¶
type AuditLog ¶
type AuditLog struct { ElementID string `json:"elementId"` ElementType string `json:"elementType"` Intent string `json:"intent"` Position int64 `json:"position"` Time string `json:"time"` }
func FromStorageAuditLog ¶
Convert storage audit log to GraphQL audit log.
type FilterType ¶
type FilterType string
const ( FilterTypeIs FilterType = "IS" FilterTypeIsNot FilterType = "IS_NOT" FilterTypeContains FilterType = "CONTAINS" )
func (FilterType) IsValid ¶
func (e FilterType) IsValid() bool
func (FilterType) MarshalGQL ¶
func (e FilterType) MarshalGQL(w io.Writer)
func (FilterType) String ¶
func (e FilterType) String() string
func (*FilterType) UnmarshalGQL ¶
func (e *FilterType) UnmarshalGQL(v interface{}) error
type Incident ¶
type Incident struct { IncidentKey int64 `json:"incidentKey"` InstanceKey int64 `json:"instanceKey"` ElementID string `json:"elementId"` ErrorType string `json:"errorType"` ErrorMessage string `json:"errorMessage"` State string `json:"state"` Time string `json:"time"` Instance *Instance `json:"instance"` }
func FromStorageIncident ¶
Convert storage incident to GraphQL incident.
type Instance ¶
type Instance struct { StartTime string `json:"startTime"` EndTime *string `json:"endTime,omitempty"` InstanceKey int64 `json:"instanceKey"` ProcessKey int64 `json:"processKey"` Version int64 `json:"version"` Status string `json:"status"` AuditLogs *PaginatedAuditLogs `json:"auditLogs"` Incidents *PaginatedIncidents `json:"incidents"` Jobs *PaginatedJobs `json:"jobs"` Variables *PaginatedVariables `json:"variables"` Process *Process `json:"process"` }
func FromStorageInstance ¶
Convert storage instance to GraphQL instance.
type Job ¶
type PaginatedAuditLogs ¶
type PaginatedIncidents ¶
type PaginatedInstances ¶
type PaginatedJobs ¶
type PaginatedProcesses ¶
type PaginatedVariables ¶
type Pagination ¶
type Process ¶
type Process struct { BpmnResource string `json:"bpmnResource"` BpmnProcessID string `json:"bpmnProcessId"` DeploymentTime string `json:"deploymentTime"` Instances *PaginatedInstances `json:"instances"` ProcessKey int64 `json:"processKey"` Version int64 `json:"version"` }
func FromStorageProcess ¶
Convert storage process to GraphQL process.
type Variable ¶
type Variable struct { Name string `json:"name"` Value string `json:"value"` Time string `json:"time"` }
func FromStorageVariable ¶
Convert storage variable to GraphQL variable.
type VariableFilter ¶
type VariableFilter struct { Name string `json:"name"` Type FilterType `json:"type"` }