types

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2017 License: Apache-2.0 Imports: 1 Imported by: 3

Documentation

Index

Constants

View Source
const (
	CodeSuccess                 = "success"
	CodeIncorrectBaseOffset     = "incorrect_base_offset"
	CodeIncorrectSubscriptionId = "incorrect_subscription_id"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type PushInput

type PushInput struct {
	SubscriptionId string
	Push           *rtypes.ReadResult
}

func NewPushInput

func NewPushInput(subscriptionId string, readResult *rtypes.ReadResult) *PushInput

type PushOutput

type PushOutput struct {
	Code                  string
	AcceptedOffset        string
	CorrectSubscriptionId string `json:",omitempty"`
	BehindCursors         []string
}

func NewPushOutputIncorrectBaseOffset

func NewPushOutputIncorrectBaseOffset(correctBaseOffset string) *PushOutput

func NewPushOutputIncorrectSubscriptionId

func NewPushOutputIncorrectSubscriptionId(correctSubscriptionId string) *PushOutput

func NewPushOutputSuccess

func NewPushOutputSuccess(acceptedOffset string, behindCursors []string) *PushOutput

type Transport

type Transport interface {
	Push(*PushInput) (*PushOutput, error)
}

Jump to

Keyboard shortcuts

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