Documentation ¶
Index ¶
- type Client
- type ClientOption
- type Handler
- type LocalSubscribeOption
- type Message
- type PublishOption
- type PushRequest
- type Server
- type ServerOption
- type Topic
- func (topic *Topic) LocalAssertSubscription(ctx context.Context, name string, opts ...LocalSubscribeOption) error
- func (topic *Topic) PublishBytes(ctx context.Context, value []byte, opts ...PublishOption) error
- func (topic *Topic) PublishJSON(ctx context.Context, value interface{}, opts ...PublishOption) error
- func (topic *Topic) PublishProto(ctx context.Context, data proto.Message, opts ...PublishOption) error
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(opts ...ClientOption) (*Client, error)
type ClientOption ¶
type ClientOption func(client *Client)
func DisableLocalEmulator ¶
func DisableLocalEmulator() ClientOption
func WithProject ¶
func WithProject(project string) ClientOption
type LocalSubscribeOption ¶
type LocalSubscribeOption func(cnf *pubsub.SubscriptionConfig)
func WithFilter ¶
func WithFilter(filter string) LocalSubscribeOption
type Message ¶
type PublishOption ¶
func WithAttribute ¶
func WithAttribute(key, value string) PublishOption
type PushRequest ¶
type Server ¶ added in v1.86.0
type Server struct {
// contains filtered or unexported fields
}
type ServerOption ¶ added in v1.86.0
type ServerOption func(s *Server)
func WithAudience ¶ added in v1.86.0
func WithAudience(audience string) ServerOption
func WithServiceAccount ¶ added in v1.86.0
func WithServiceAccount(serviceAccount string) ServerOption
type Topic ¶
type Topic struct {
// contains filtered or unexported fields
}
func (*Topic) LocalAssertSubscription ¶
func (*Topic) PublishBytes ¶
func (*Topic) PublishJSON ¶
func (topic *Topic) PublishJSON(ctx context.Context, value interface{}, opts ...PublishOption) error
func (*Topic) PublishProto ¶
Click to show internal directories.
Click to hide internal directories.