inng

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(address string) (*Client, error)

func (*Client) CallImageProcessing

func (c *Client) CallImageProcessing(
	req *RequestImageProcessing, payload []byte) (*ResponseImageProcessing, error)

func (*Client) Close

func (c *Client) Close()

type RequestImageProcessing

type RequestImageProcessing struct {
	MessageId string `cbor:"1,keyasint"` // cbor:"message_id"`
	Left      uint32 `cbor:"2,keyasint"` // cbor:"left"`
	Top       uint32 `cbor:"3,keyasint"` // cbor:"top"`
	Right     uint32 `cbor:"4,keyasint"` // cbor:"right"`
	Bottom    uint32 `cbor:"5,keyasint"` // cbor:"bottom"`
	Quality   uint32 `cbor:"6,keyasint"` // cbor:"quality"`
}

func (*RequestImageProcessing) MarshalCborWithPayload

func (r *RequestImageProcessing) MarshalCborWithPayload(payload []byte) ([]byte, error)

func (*RequestImageProcessing) UnmarshalCborWithPayload

func (r *RequestImageProcessing) UnmarshalCborWithPayload(msg []byte) ([]byte, error)

type ResponseImageProcessing

type ResponseImageProcessing struct {
	ReqMessageId string  `cbor:"1,keyasint"` // `cbor:"req_message_id"`
	Success      bool    `cbor:"2,keyasint"` // `cbor:"success"`
	SrcWidth     uint32  `cbor:"3,keyasint"` // `cbor:"src_width"`
	SrcHeight    uint32  `cbor:"4,keyasint"` // `cbor:"src_height"`
	DstWidth     uint32  `cbor:"5,keyasint"` // `cbor:"dst_width"`
	DstHeight    uint32  `cbor:"6,keyasint"` // `cbor:"dst_height"`
	Message      *string `cbor:"7,keyasint"` // `cbor:"message"`
}

func (*ResponseImageProcessing) MarshalCborWithPayload

func (r *ResponseImageProcessing) MarshalCborWithPayload(payload []byte) ([]byte, error)

func (*ResponseImageProcessing) UnmarshalCborWithPayload

func (r *ResponseImageProcessing) UnmarshalCborWithPayload(msg []byte) ([]byte, error)

type Server

type Server struct {
	// contains filtered or unexported fields
}

func NewServer

func NewServer(address string) *Server

func (*Server) Close

func (s *Server) Close()

func (*Server) StartListenAndServe

func (s *Server) StartListenAndServe() error

Jump to

Keyboard shortcuts

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