Documentation
¶
Index ¶
- Variables
- type MessageInfo
- type Service
- func (s *Service) Describe(ctx context.Context, in *api.DescribeRequest) (*api.DescribeResponse, error)
- func (s *Service) Imagine(ctx context.Context, in *api.ImagineRequest) (*api.ImagineResponse, error)
- func (s *Service) Reroll(ctx context.Context, in *api.RerollRequest) (*api.RerollResponse, error)
- func (s *Service) Upscale(ctx context.Context, in *api.UpscaleRequest) (*api.UpscaleResponse, error)
- func (s *Service) Variation(ctx context.Context, in *api.VariationRequest) (*api.VariationResponse, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Mutex = new(sync.Mutex) DescribeInfoCh = make(chan discordgo.MessageEmbed, 1) )
View Source
var KeyChan *keyChan
Functions ¶
This section is empty.
Types ¶
type MessageInfo ¶
type MessageInfo struct { ID string StartTime int64 Error *discordgo.MessageEmbed }
type Service ¶
type Service struct { api.UnimplementedAPIServiceServer *common.Base }
func (*Service) Describe ¶
func (s *Service) Describe(ctx context.Context, in *api.DescribeRequest) (*api.DescribeResponse, error)
flow: 1. create mesasge id: 1 2. update message id: 1
func (*Service) Imagine ¶
func (s *Service) Imagine(ctx context.Context, in *api.ImagineRequest) (*api.ImagineResponse, error)
flow: 1. create mesasge id: 1 2. update message id: 1 3. create message id: 2 -> contains attachments 4. delete message id: 1
func (*Service) Reroll ¶
func (s *Service) Reroll(ctx context.Context, in *api.RerollRequest) (*api.RerollResponse, error)
flow: 1. create mesasge id: 3 2. update message id: 2 3. create message id: 4 -> contains attachments 4. delete message id: 3
func (*Service) Upscale ¶
func (s *Service) Upscale(ctx context.Context, in *api.UpscaleRequest) (*api.UpscaleResponse, error)
flow: 1. create mesasge id: 3 2. update message id: 2 3. create message id: 4 -> contains attachments 4. delete message id: 3
func (*Service) Variation ¶
func (s *Service) Variation(ctx context.Context, in *api.VariationRequest) (*api.VariationResponse, error)
flow: 1. create mesasge id: 3 2. update message id: 2 3. create message id: 4 -> contains attachments 4. delete message id: 3
Click to show internal directories.
Click to hide internal directories.