dto

package
v0.0.0-...-d1e270b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 14, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DotMatrixParams

type DotMatrixParams struct {
	Device    string      `json:"device"`
	IpPrinter string      `json:"body"`
	Data      interface{} `json:"data"`
}

DotMatrixParams defines the dot matrix printer parameters

type Message

type Message struct {
	Body             MessageBody    `json:"body"`
	Headers          MessageHeaders `json:"headers"`
	SourceRoutingKey string         `json:"source_routing_key"`
}

Message defines the whatsapp message

func (*Message) ExtractMessage

func (msg *Message) ExtractMessage(rawMsg []byte, rawHeaders amqp.Table) error

ExtractMessage extracts message body

func (*Message) Validate

func (msg *Message) Validate() error

Validate validates message

type MessageBody

type MessageBody struct {
	FileExt      string `json:"extension"`
	FilePath     string `json:"file_path"`
	PrinterModel string `json:"printer_model"`
}

MessageBody defines th message body

type MessageHeaders

type MessageHeaders struct {
	SvcId           string `json:"svc_id"`
	RequeueStrategy string `json:"requeue_strategy"`
	MessageType     string `json:"message_type"`
}

MessageHeaders defines th message headers

type PosParams

type PosParams struct {
	Device    string      `json:"device"`
	IpPrinter string      `json:"body"`
	Data      interface{} `json:"data"`
}

PosParams defines the pos printer parameters

type ZebraParams

type ZebraParams struct {
	Device    string      `json:"device"`
	IpPrinter string      `json:"body"`
	Data      interface{} `json:"data"`
}

ZebraParams defines the zebra printer parameters

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL