Documentation ¶
Overview ¶
Package database is a generated GoMock package.
Index ¶
- type DBOpenAPILoader
- type MockDBOpenAPILoader
- func (m *MockDBOpenAPILoader) EXPECT() *MockDBOpenAPILoaderMockRecorder
- func (m *MockDBOpenAPILoader) IsLoaded(schemaID int) bool
- func (m *MockDBOpenAPILoader) Load(dbStoragePath string) error
- func (m *MockDBOpenAPILoader) SchemaIDs() []int
- func (m *MockDBOpenAPILoader) Specification(schemaID int) *openapi3.T
- func (m *MockDBOpenAPILoader) SpecificationRaw(schemaID int) []byte
- func (m *MockDBOpenAPILoader) SpecificationVersion(schemaID int) string
- type MockDBOpenAPILoaderMockRecorder
- func (mr *MockDBOpenAPILoaderMockRecorder) IsLoaded(schemaID interface{}) *gomock.Call
- func (mr *MockDBOpenAPILoaderMockRecorder) Load(dbStoragePath interface{}) *gomock.Call
- func (mr *MockDBOpenAPILoaderMockRecorder) SchemaIDs() *gomock.Call
- func (mr *MockDBOpenAPILoaderMockRecorder) Specification(schemaID interface{}) *gomock.Call
- func (mr *MockDBOpenAPILoaderMockRecorder) SpecificationRaw(schemaID interface{}) *gomock.Call
- func (mr *MockDBOpenAPILoaderMockRecorder) SpecificationVersion(schemaID interface{}) *gomock.Call
- type OpenAPISpecStorage
- type SQLLite
- func (s *SQLLite) IsLoaded(schemaID int) bool
- func (s *SQLLite) Load(dbStoragePath string) error
- func (s *SQLLite) SchemaIDs() []int
- func (s *SQLLite) Specification(schemaID int) *openapi3.T
- func (s *SQLLite) SpecificationRaw(schemaID int) []byte
- func (s *SQLLite) SpecificationVersion(schemaID int) string
- type SpecificationEntry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBOpenAPILoader ¶
type DBOpenAPILoader interface { Load(dbStoragePath string) error SpecificationRaw(schemaID int) []byte SpecificationVersion(schemaID int) string Specification(schemaID int) *openapi3.T IsLoaded(schemaID int) bool SchemaIDs() []int }
func NewOpenAPIDB ¶
func NewOpenAPIDB(log *logrus.Logger, dbStoragePath string) (DBOpenAPILoader, error)
type MockDBOpenAPILoader ¶
type MockDBOpenAPILoader struct {
// contains filtered or unexported fields
}
MockDBOpenAPILoader is a mock of DBOpenAPILoader interface.
func NewMockDBOpenAPILoader ¶
func NewMockDBOpenAPILoader(ctrl *gomock.Controller) *MockDBOpenAPILoader
NewMockDBOpenAPILoader creates a new mock instance.
func (*MockDBOpenAPILoader) EXPECT ¶
func (m *MockDBOpenAPILoader) EXPECT() *MockDBOpenAPILoaderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDBOpenAPILoader) IsLoaded ¶
func (m *MockDBOpenAPILoader) IsLoaded(schemaID int) bool
IsLoaded mocks base method.
func (*MockDBOpenAPILoader) Load ¶
func (m *MockDBOpenAPILoader) Load(dbStoragePath string) error
Load mocks base method.
func (*MockDBOpenAPILoader) SchemaIDs ¶
func (m *MockDBOpenAPILoader) SchemaIDs() []int
SchemaIDs mocks base method.
func (*MockDBOpenAPILoader) Specification ¶
func (m *MockDBOpenAPILoader) Specification(schemaID int) *openapi3.T
Specification mocks base method.
func (*MockDBOpenAPILoader) SpecificationRaw ¶
func (m *MockDBOpenAPILoader) SpecificationRaw(schemaID int) []byte
SpecificationRaw mocks base method.
func (*MockDBOpenAPILoader) SpecificationVersion ¶
func (m *MockDBOpenAPILoader) SpecificationVersion(schemaID int) string
SpecificationVersion mocks base method.
type MockDBOpenAPILoaderMockRecorder ¶
type MockDBOpenAPILoaderMockRecorder struct {
// contains filtered or unexported fields
}
MockDBOpenAPILoaderMockRecorder is the mock recorder for MockDBOpenAPILoader.
func (*MockDBOpenAPILoaderMockRecorder) IsLoaded ¶
func (mr *MockDBOpenAPILoaderMockRecorder) IsLoaded(schemaID interface{}) *gomock.Call
IsLoaded indicates an expected call of IsLoaded.
func (*MockDBOpenAPILoaderMockRecorder) Load ¶
func (mr *MockDBOpenAPILoaderMockRecorder) Load(dbStoragePath interface{}) *gomock.Call
Load indicates an expected call of Load.
func (*MockDBOpenAPILoaderMockRecorder) SchemaIDs ¶
func (mr *MockDBOpenAPILoaderMockRecorder) SchemaIDs() *gomock.Call
SchemaIDs indicates an expected call of SchemaIDs.
func (*MockDBOpenAPILoaderMockRecorder) Specification ¶
func (mr *MockDBOpenAPILoaderMockRecorder) Specification(schemaID interface{}) *gomock.Call
Specification indicates an expected call of Specification.
func (*MockDBOpenAPILoaderMockRecorder) SpecificationRaw ¶
func (mr *MockDBOpenAPILoaderMockRecorder) SpecificationRaw(schemaID interface{}) *gomock.Call
SpecificationRaw indicates an expected call of SpecificationRaw.
func (*MockDBOpenAPILoaderMockRecorder) SpecificationVersion ¶
func (mr *MockDBOpenAPILoaderMockRecorder) SpecificationVersion(schemaID interface{}) *gomock.Call
SpecificationVersion indicates an expected call of SpecificationVersion.
type OpenAPISpecStorage ¶
type OpenAPISpecStorage struct {
Specs []SpecificationEntry
}
type SQLLite ¶
type SQLLite struct { Log *logrus.Logger RawSpecs map[int]*SpecificationEntry LastUpdate time.Time OpenAPISpec map[int]*openapi3.T // contains filtered or unexported fields }