Documentation
¶
Index ¶
- Variables
- type API
- func (api *API) CreateBeatsSheet(ctx context.Context, req *apimodels.CreateBeatsSheetForm) (apimodels.CreateBeatsSheetRes, error)
- func (api *API) CreateLogline(ctx context.Context, req *apimodels.CreateLoglineForm) (apimodels.CreateLoglineRes, error)
- func (api *API) ExpandBeat(ctx context.Context, req *apimodels.ExpandBeatForm) (apimodels.ExpandBeatRes, error)
- func (api *API) ExpandLogline(ctx context.Context, req *apimodels.LoglineIdea) (apimodels.ExpandLoglineRes, error)
- func (api *API) GenerateBeatsSheet(ctx context.Context, req *apimodels.GenerateBeatsSheetForm) (apimodels.GenerateBeatsSheetRes, error)
- func (api *API) GenerateLoglines(ctx context.Context, req *apimodels.GenerateLoglinesForm) (apimodels.GenerateLoglinesRes, error)
- func (api *API) GetBeatsSheet(ctx context.Context, params apimodels.GetBeatsSheetParams) (apimodels.GetBeatsSheetRes, error)
- func (api *API) GetBeatsSheets(ctx context.Context, params apimodels.GetBeatsSheetsParams) (apimodels.GetBeatsSheetsRes, error)
- func (api *API) GetLogline(ctx context.Context, params apimodels.GetLoglineParams) (apimodels.GetLoglineRes, error)
- func (api *API) GetLoglines(ctx context.Context, params apimodels.GetLoglinesParams) (apimodels.GetLoglinesRes, error)
- func (api *API) Healthcheck(ctx context.Context) (apimodels.HealthcheckRes, error)
- func (api *API) NewError(ctx context.Context, err error) *apimodels.UnexpectedErrorStatusCode
- func (api *API) Ping(_ context.Context) (apimodels.PingRes, error)
- func (api *API) RegenerateBeats(ctx context.Context, req *apimodels.RegenerateBeatsForm) (apimodels.RegenerateBeatsRes, error)
- type CreateBeatsSheetService
- type CreateLoglineService
- type ExpandBeatService
- type ExpandLoglineService
- type GenerateBeatsSheetService
- type GenerateLoglinesService
- type ListBeatsSheetsService
- type ListLoglinesService
- type RegenerateBeatsService
- type SecurityHandler
- type SelectBeatsSheetService
- type SelectLoglineService
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrForbidden = &apimodels.UnexpectedErrorStatusCode{ StatusCode: http.StatusForbidden, Response: apimodels.UnexpectedError{Error: "Forbidden"}, }
View Source
var ErrInternalServerError = &apimodels.UnexpectedErrorStatusCode{ StatusCode: http.StatusInternalServerError, Response: apimodels.UnexpectedError{Error: "internal server error"}, }
View Source
StatusCode: http.StatusUnauthorized, Response: apimodels.UnexpectedError{Error: "Unauthorized"}, }
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
apimodels.UnimplementedHandler
CreateBeatsSheetService CreateBeatsSheetService
CreateLoglineService CreateLoglineService
ExpandBeatService ExpandBeatService
ExpandLoglineService ExpandLoglineService
GenerateBeatsSheetService GenerateBeatsSheetService
GenerateLoglinesService GenerateLoglinesService
ListBeatsSheetsService ListBeatsSheetsService
ListLoglinesService ListLoglinesService
RegenerateBeatsService RegenerateBeatsService
SelectBeatsSheetService SelectBeatsSheetService
SelectLoglineService SelectLoglineService
JKClient *jkApiModels.Client
OpenAIClient *config.OpenAI
}
func (*API) CreateBeatsSheet ¶
func (*API) CreateLogline ¶
func (*API) ExpandBeat ¶
func (*API) ExpandLogline ¶
func (*API) GenerateBeatsSheet ¶
func (*API) GenerateLoglines ¶
func (*API) GetBeatsSheet ¶
func (*API) GetBeatsSheets ¶
func (*API) GetLogline ¶
func (*API) GetLoglines ¶
func (*API) Healthcheck ¶
type CreateBeatsSheetService ¶
type CreateBeatsSheetService interface {
CreateBeatsSheet(ctx context.Context, request services.CreateBeatsSheetRequest) (*models.BeatsSheet, error)
}
type CreateLoglineService ¶
type ExpandBeatService ¶
type ExpandLoglineService ¶
type ExpandLoglineService interface {
ExpandLogline(ctx context.Context, request services.ExpandLoglineRequest) (*models.LoglineIdea, error)
}
type GenerateLoglinesService ¶
type GenerateLoglinesService interface {
GenerateLoglines(ctx context.Context, request services.GenerateLoglinesRequest) ([]models.LoglineIdea, error)
}
type ListBeatsSheetsService ¶
type ListBeatsSheetsService interface {
ListBeatsSheets(ctx context.Context, request services.ListBeatsSheetsRequest) ([]*models.BeatsSheetPreview, error)
}
type ListLoglinesService ¶
type ListLoglinesService interface {
ListLoglines(ctx context.Context, request services.ListLoglinesRequest) ([]*models.LoglinePreview, error)
}
type RegenerateBeatsService ¶
type SecurityHandler ¶
type SecurityHandler struct {
// contains filtered or unexported fields
}
func NewSecurity ¶
func NewSecurity( source authpkg.AuthenticateSource, permissions authconfig.Permissions, ) (*SecurityHandler, error)
func (*SecurityHandler) HandleBearerAuth ¶
type SelectBeatsSheetService ¶
type SelectBeatsSheetService interface {
SelectBeatsSheet(ctx context.Context, request services.SelectBeatsSheetRequest) (*models.BeatsSheet, error)
}
type SelectLoglineService ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.