Documentation
¶
Index ¶
- Constants
- Variables
- type API
- type MockResource
- func (_m *MockResource) Create(c context.Context, obj interface{}) (Response, error)
- func (_m *MockResource) Delete(c context.Context, id string) (Response, error)
- func (_m *MockResource) FindAll(c context.Context) (Response, error)
- func (_m *MockResource) FindOne(c context.Context, id string) (Response, error)
- func (_m *MockResource) Update(c context.Context, obj interface{}) (Response, error)
- type MockResponse
- type Resource
- type Response
Constants ¶
View Source
const (
// MIMEApplicationJSONAPI is the MIME type for JSONAPI.
MIMEApplicationJSONAPI = "application/vnd.api+json"
)
Variables ¶
View Source
var ( // WebPassword is the web token used for api auth. WebPassword string )
Functions ¶
This section is empty.
Types ¶
type MockResource ¶
func (*MockResource) Create ¶
func (_m *MockResource) Create(c context.Context, obj interface{}) (Response, error)
type MockResponse ¶
func (*MockResponse) Result ¶
func (_m *MockResponse) Result() interface{}
func (*MockResponse) StatusCode ¶
func (_m *MockResponse) StatusCode() int
type Resource ¶
type Resource interface {
FindOne(c context.Context, id string) (Response, error)
Create(c context.Context, obj interface{}) (Response, error)
Delete(c context.Context, id string) (Response, error)
Update(c context.Context, obj interface{}) (Response, error)
FindAll(c context.Context) (Response, error)
}
Resource is an autoscale resource.
Click to show internal directories.
Click to hide internal directories.