Versions in this module Expand all Collapse all v0 v0.1.40 Jul 16, 2022 Changes in this version + const FooBopBase + const FooBopByBarDir + const FooBopDir + var ModelFS embed.FS + 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 struct + CreatedAt time.Time + ID int64 + UpdatedAt time.Time + type AuditCreatable struct + type AuditPatchable struct + Name *string + type AuditUpdatable struct + Name string + type FooBop struct + ID int64 + func FooBopRead(ctx context.Context, querier pgxtype.Querier, fooBopID int64) (*FooBop, error) + func FooBopReadByBar(ctx context.Context, querier pgxtype.Querier, fooBopBar int32) (*FooBop, error) + type FooBopClient struct + func NewFooBopClient(baseURL string, httpClient *http.Client) *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 struct + Blah bool + type FooBopCreateResponse struct + ID int64 + type FooBopDeleteResponse struct + type FooBopPatchResponse struct + type FooBopPatchable struct + Bar *int32 + Baz *[]byte + BipBup *[]string + type FooBopUpdatable struct + Bar int32 + Baz []byte + BipBup []string + type FooBopUpdateResponse struct + type Server struct + func NewServer(logger dlog.Logger, conn *pgxpool.Pool, clstr cluster.Cluster) (*Server, error) + func (s *Server) Close(ctx context.Context) error + func (s *Server) ServeHTTP(resp http.ResponseWriter, req *http.Request) v0.1.39 Jul 16, 2022