Documentation ¶
Index ¶
- Variables
- type CreateDeviceDto
- type Handler
- type RequestQRDto
- type Service
- func (s *Service) CheckIfNotScanned(sessionID string)
- func (s *Service) CreateDevice(c *gofx.Context, payload *CreateDeviceDto) error
- func (s *Service) DecodeProjectID(c *gofx.Context, encodedID string) int32
- func (s *Service) GetDevicesByProjectID(c *gofx.Context, encodedID string) ([]*dbrepo.GetDevicesByProjectEncodedIDRow, error)
- func (s *Service) RequestQRCode(_ *gofx.Context, sessionID string) (string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrProjectIDNotFound = errors.New("project id is not defined") ErrRepository = errors.New("something when wrong on us, not you") ErrWhatsappClient = errors.New("errors from whatsapp client") ErrWhatsappLibrary = errors.New("errors from whatsmeow library") ErrAlreadyLoggedIn = errors.New("client already logged in") )
View Source
var Module = fx.Module("device", fx.Provide(NewHandler), fx.Provide(NewService))
Functions ¶
This section is empty.
Types ¶
type CreateDeviceDto ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func (*Handler) CreateDeviceForm ¶
type RequestQRDto ¶
type RequestQRDto struct {
SessionID string `query:"session_id" validate:"required"`
}
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func (*Service) CheckIfNotScanned ¶
func (*Service) CreateDevice ¶
func (s *Service) CreateDevice(c *gofx.Context, payload *CreateDeviceDto) error
func (*Service) DecodeProjectID ¶
func (*Service) GetDevicesByProjectID ¶
Click to show internal directories.
Click to hide internal directories.