Versions in this module Expand all Collapse all v0 v0.0.8 Mar 19, 2024 v0.0.7 Mar 15, 2024 v0.0.6 Mar 14, 2024 v0.0.5 Mar 12, 2024 v0.0.4 Jan 11, 2024 Changes in this version + const AdvancedKey v0.0.3 Jan 6, 2024 Changes in this version + const DimensionLandscape + const DimensionPortrait v0.0.2 Jan 6, 2024 v0.0.1 Jan 6, 2024 Changes in this version + const DN + const DrmMidjourneyCaptcha + const Expired + const FourBoxGrid + const ImageStart + const PU + const PanParamDown + const PanParamLeft + const PanParamRight + const PanParamUp + const SettingsKey + const StatusComplete + const StatusJobQueued + const StatusProcessing + const StatusUnknown + const StatusWaitingToStart + const TemporaryExpired + const TemporaryKey + const TypeBlend + const TypeImagine + const TypePanDown + const TypePanDownKey + const TypePanLeft + const TypePanLeftKey + const TypePanRight + const TypePanRightKey + const TypePanUp + const TypePanUpKey + const TypePicReadRetryKey + const TypePicReader + const TypePicReaderKey + const TypeReroll + const TypeRerollKey + const TypeUnknown + const TypeUpscale + const TypeUpscaleCreativeKey + const TypeUpscaleKey + const TypeUpscaleSubtleKey + const TypeUpscaleXFour + const TypeUpscaleXFourKey + const TypeUpscaleXTwo + const TypeUpscaleXTwoKey + const TypeVariation + const TypeVariationKey + const TypeVariationRegion + const TypeVariationRegionKey + const TypeVariationStrong + const TypeVariationStrongKey + const TypeVariationSubtle + const TypeVariationSubtleKey + const TypeZoomOutOneX + const TypeZoomOutOneXKey + const TypeZoomOutTwoX + const TypeZoomOutTwoXKey + const Unknown + const UpscaleMultipleStart + const UpscaleRun + const UpscaleStart + const VariationRun + const VariationStart + func CreateKey(items ...string) string + func CreateKeysOfZoomAndUp(id string) []string + func ExtractURLsFromString(input string) []string + func GetFinalURL(url string) (string, error) + func GetKey(s string) string + func SplitKey(key string) []string + type CompleteInfo struct + Attachments []map[string]any + ID string + type Config struct + Redis Redis + type Error struct + Code api.Codes + Msg string + func (e Error) Error() string + type Key string + type MetaData struct + Attachments string + CompleteMessageID string + CompleteTime int64 + ID string + IsQuadrilateralGrid string + MemberId string + Mode string + ProcessRate string + Prompt string + RequestId string + StartTime int64 + Status Status + Type string + Webhook string + func (md *MetaData) GetImageURL() (string, error) + type Redis struct + Address string + Password string + type Status string + type Store struct + func NewStore(config *Config) *Store + func (s *Store) CheckPrompt(ctx context.Context, prompt string) error + func (s *Store) CheckStatusByKey(ctx context.Context, key string) (bool, error) + func (s *Store) CompleteTask(ipAddress string) + func (s *Store) GetID(ctx context.Context, key string) (string, error) + func (s *Store) GetMetaData(ctx context.Context, id string) (*MetaData, error) + func (s *Store) GetType(ctx context.Context, key string) (isQuadrilateralGrid, mjType string, err error) + func (s *Store) GetZoomOutKey(ctx context.Context, msgId string) (string, error) + func (s *Store) SaveMeta(ctx context.Context, key, id, typ, prompt string, status Status, ...) error + func (s *Store) SaveWebhook(ctx context.Context, id, webhook, reqId, memberId string) error + func (s *Store) SaveWithComplete(ctx context.Context, ...) error + func (s *Store) UpdateProcessRate(ctx context.Context, id, processRate string, attachments string, ...) error + type Type string