Documentation
¶
Index ¶
- Constants
- func MsgId(id pulsar.MessageID) string
- func NewAuthProvider(accessID, accessKey string) *authProvider
- func SetInternalLogLevel(level logrus.Level)
- func TopicForAccessID(accessID string) string
- type Client
- type ClientConfig
- type Consumer
- type ConsumerConfig
- type Message
- type PayloadHandlerV2
- type ProducerMessage
Constants ¶
View Source
const ( PulsarAddrCN = "pulsar+ssl://mqe.tuyacn.com:7285" PulsarAddrEU = "pulsar+ssl://mqe.tuyaeu.com:7285" PulsarAddrUS = "pulsar+ssl://mqe.tuyaus.com:7285" )
Variables ¶
This section is empty.
Functions ¶
func NewAuthProvider ¶
func NewAuthProvider(accessID, accessKey string) *authProvider
func SetInternalLogLevel ¶
func TopicForAccessID ¶
Types ¶
type Client ¶
type Client interface {
NewConsumer(config ConsumerConfig) (Consumer, error)
}
func NewClient ¶
func NewClient(cfg ClientConfig) Client
type ClientConfig ¶
type ClientConfig struct { PulsarAddr string Auth interface{} }
type Consumer ¶
type Consumer interface { ReceiveAndHandle(ctx context.Context, handler PayloadHandlerV2) Close() error }
type ConsumerConfig ¶
type PayloadHandlerV2 ¶
type ProducerMessage ¶
Click to show internal directories.
Click to hide internal directories.