Documentation ¶
Overview ¶
This code has been generated by struct.tmpl, please don't edit, but keep the linters happy
This code has been generated by crud.tmpl, please don't edit, but keep the linters happy
This code has been generated by http.tmpl, please don't edit, but keep the linters happy
This code has been generated by httpd.tmpl, please don't edit, but keep the linters happy
This code has been generated by struct.tmpl, please don't edit, but keep the linters happy
Index ¶
- Constants
- Variables
- func FooBopCreate(ctx context.Context, querier pgxtype.Querier, fooBop *FooBopCreatable) (int64, error)
- func FooBopCreateTable(ctx context.Context, querier pgxtype.Querier) error
- func FooBopDelete(ctx context.Context, querier pgxtype.Querier, fooBopID int64) error
- func FooBopPatch(ctx context.Context, querier pgxtype.Querier, fooBopID int64, ...) error
- func FooBopUpdate(ctx context.Context, querier pgxtype.Querier, fooBopID int64, ...) error
- type Audit
- type AuditCreatable
- type AuditPatchable
- type AuditUpdatable
- type FooBop
- type FooBopClient
- func (fbc *FooBopClient) Create(ctx context.Context, buf *bytes.Buffer, fooBop *FooBopCreatable) (int64, error)
- func (fbc *FooBopClient) Delete(ctx context.Context, buf *bytes.Buffer, fooBopID int64) error
- func (fbc *FooBopClient) Patch(ctx context.Context, buf *bytes.Buffer, fooBopID int64, ...) error
- func (fbc *FooBopClient) Read(ctx context.Context, fooBopID int64) (*FooBop, error)
- func (fbc *FooBopClient) ReadByBar(ctx context.Context, fooBopBar int32) (*FooBop, error)
- func (fbc *FooBopClient) Update(ctx context.Context, buf *bytes.Buffer, fooBopID int64, ...) error
- type FooBopCreatable
- type FooBopCreateResponse
- type FooBopDeleteResponse
- type FooBopPatchResponse
- type FooBopPatchable
- type FooBopUpdatable
- type FooBopUpdateResponse
- type Server
Constants ¶
View Source
const ( FooBopBase = "/foo_bop" FooBopDir = FooBopBase + "/" FooBopByBarDir = FooBopDir + "bar/" )
Variables ¶
View Source
var ModelFS embed.FS
Functions ¶
func FooBopCreate ¶
func FooBopDelete ¶
func FooBopPatch ¶
func FooBopUpdate ¶
Types ¶
type AuditCreatable ¶
type AuditCreatable struct {
AuditUpdatable
}
type AuditPatchable ¶
type AuditPatchable struct {
Name *string `json:"name"`
}
type AuditUpdatable ¶
type AuditUpdatable struct {
Name string `json:"name"`
}
type FooBopClient ¶
type FooBopClient struct {
// contains filtered or unexported fields
}
func NewFooBopClient ¶
func NewFooBopClient(baseURL string, httpClient *http.Client) *FooBopClient
func (*FooBopClient) Create ¶
func (fbc *FooBopClient) Create(ctx context.Context, buf *bytes.Buffer, fooBop *FooBopCreatable) (int64, error)
func (*FooBopClient) Patch ¶
func (fbc *FooBopClient) Patch(ctx context.Context, buf *bytes.Buffer, fooBopID int64, fooBop *FooBopPatchable) error
func (*FooBopClient) Update ¶
func (fbc *FooBopClient) Update(ctx context.Context, buf *bytes.Buffer, fooBopID int64, fooBop *FooBopUpdatable) error
type FooBopCreatable ¶
type FooBopCreatable struct { FooBopUpdatable Blah bool `json:"blah"` }
type FooBopCreateResponse ¶
type FooBopCreateResponse struct {
ID int64 `json:"id"`
}
type FooBopDeleteResponse ¶
type FooBopDeleteResponse struct{}
type FooBopPatchResponse ¶
type FooBopPatchResponse struct{}
type FooBopPatchable ¶
type FooBopUpdatable ¶
type FooBopUpdateResponse ¶
type FooBopUpdateResponse struct{}
Click to show internal directories.
Click to hide internal directories.