client

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2017 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultClient

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

DefaultClient - default client that connects to webhookrelay service via gRPC protocol

func NewDefaultClient

func NewDefaultClient(opts *Opts, relayer relay.Relayer) *DefaultClient

NewDefaultClient - create new default client with given options

func (*DefaultClient) StartRelay

func (c *DefaultClient) StartRelay(filter *Filter) error

StartRelay - start relaying

type Filter

type Filter struct {
	Bucket, Destination string
}

Filter - optional filter that can be passed to the server

type Opts

type Opts struct {
	Address, AccessKey, AccessSecret string
	RequireTLS                       bool
	Debug                            bool
}

Opts - client configuration

type WebhookRelayClient

type WebhookRelayClient interface {
	StartRelay(filter *Filter) error
	Stop() error
}

WebhookRelayClient - default webhookrelay interface

Jump to

Keyboard shortcuts

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