Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SortBeatConverter = grpc.NewProtoConverter( grpc.ProtoMapper[storystructurev1.SortBeats, SortBeat]{ storystructurev1.SortBeats_SORT_BEATS_BY_NAME: SortBeatName, storystructurev1.SortBeats_SORT_BEATS_BY_CREATED_AT: SortBeatCreatedAt, storystructurev1.SortBeats_SORT_BEATS_BY_UPDATED_AT: SortBeatUpdatedAt, }, storystructurev1.SortBeats_SORT_BEATS_UNSPECIFIED, SortBeatNone, )
View Source
var SortPlotPointConverter = grpc.NewProtoConverter( grpc.ProtoMapper[storystructurev1.SortPlotPoints, SortPlotPoint]{ storystructurev1.SortPlotPoints_SORT_PLOT_POINTS_BY_NAME: SortPlotPointName, storystructurev1.SortPlotPoints_SORT_PLOT_POINTS_BY_CREATED_AT: SortPlotPointCreatedAt, storystructurev1.SortPlotPoints_SORT_PLOT_POINTS_BY_UPDATED_AT: SortPlotPointUpdatedAt, }, storystructurev1.SortPlotPoints_SORT_PLOT_POINTS_UNSPECIFIED, SortPlotPointNone, )
Functions ¶
This section is empty.
Types ¶
type Beat ¶
type Beat struct {
bun.BaseModel `bun:"table:beats,alias:beats"`
// CreatorID is the unique identifier of the user who created the beat.
CreatorID string `bun:"creator_id"`
// ID is the unique identifier of the beat.
ID uuid.UUID `bun:"id,pk,type:uuid"`
// Name is the human-readable name of the beat.
Name string `bun:"name"`
// Prompt used to generate a plot point with this beat.
Prompt string `bun:"prompt"`
CreatedAt time.Time `bun:"created_at"`
UpdatedAt *time.Time `bun:"updated_at"`
}
Beat is a specific sub-instruction used to shape a plot point. Mixing different beats together gives the flavor to a particular generation.
type PlotPoint ¶
type PlotPoint struct {
bun.BaseModel `bun:"table:plot_points,alias:plot_points"`
// CreatorID is the unique identifier of the user who created the plot point.
CreatorID string `bun:"creator_id"`
// ID is the unique identifier of the plot point.
ID uuid.UUID `bun:"id,pk,type:uuid"`
// Name is the human-readable name of the plot point.
Name string `bun:"name"`
// Prompt is the global instruction, used to generate the plot point.
Prompt string `bun:"prompt"`
CreatedAt time.Time `bun:"created_at"`
UpdatedAt *time.Time `bun:"updated_at"`
}
PlotPoint is the main instruction used to generate a plot point. A plot point is shaped by multiple beats.
type SortPlotPoint ¶
type SortPlotPoint string
const ( SortPlotPointNone SortPlotPoint = "" SortPlotPointName SortPlotPoint = "name" SortPlotPointCreatedAt SortPlotPoint = "created_at" SortPlotPointUpdatedAt SortPlotPoint = "updated_at" )
Click to show internal directories.
Click to hide internal directories.