github.com/voedger/voedger@v0.0.0-20240520144910-273e84102129/pkg/state/teststate/types.go (about) 1 /* 2 * Copyright (c) 2024-present unTill Software Development Group B. V. 3 * @author Michael Saigachenko 4 */ 5 package teststate 6 7 import ( 8 "io" 9 "time" 10 11 "github.com/voedger/voedger/pkg/istructs" 12 ) 13 14 type TestWorkspace struct { 15 WorkspaceDescriptor string 16 WSID istructs.WSID 17 } 18 19 type TestViewValue struct { 20 wsid istructs.WSID 21 vr istructs.IViewRecords 22 Key istructs.IKeyBuilder 23 Val istructs.IValueBuilder 24 } 25 26 type HttpRequest struct { 27 Timeout time.Duration 28 Method string 29 URL string 30 Body io.Reader 31 Headers map[string]string 32 } 33 34 type HttpResponse struct { 35 Status int 36 Body []byte 37 Headers map[string][]string 38 }