httpv1

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPBrokerV1

type HTTPBrokerV1 struct {
	PublishCallBack func(topic string, resp *http.Response) error `json:"-"`
	CACertFile      string
	CertFile        string
	KeyFile         string
	Insecure        bool
	Logger          log.Logger
	// contains filtered or unexported fields
}

func (*HTTPBrokerV1) Connect

func (h *HTTPBrokerV1) Connect() error

func (*HTTPBrokerV1) Disconnect

func (h *HTTPBrokerV1) Disconnect() error

func (*HTTPBrokerV1) Marshal

func (h *HTTPBrokerV1) Marshal() string

func (*HTTPBrokerV1) Publish

func (h *HTTPBrokerV1) Publish(topic string, msg *broker.Message, opt ...broker.PublishOption) error

func (*HTTPBrokerV1) String

func (h *HTTPBrokerV1) String() string

func (*HTTPBrokerV1) Subscribe

func (h *HTTPBrokerV1) Subscribe(topics []string, callBack broker.CallBack, opt ...broker.SubscribeOption) (broker.Subscriber, error)

Jump to

Keyboard shortcuts

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