rpc

package
v0.0.0-...-fd38b90 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateSnapshotViewReply

type CreateSnapshotViewReply struct {
	ID         string    `json:"id"`
	Subscriber string    `json:"subscriber"`
	Collection string    `json:"collection"`
	CreatedAt  time.Time `json:"createAt"`
}

type CreateSnapshotViewRequest

type CreateSnapshotViewRequest struct {
	Subscriber string `json:"subscriber"`
	Collection string `json:"collection"`
}

type DeleteSnapshotViewReply

type DeleteSnapshotViewReply struct {
	ID string `json:"id"`
}

type DeleteSnapshotViewRequest

type DeleteSnapshotViewRequest struct {
	ID string `json:"id"`
}

type Error

type Error struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
}

func NotFoundViewErr

func NotFoundViewErr() *Error

type ErrorReply

type ErrorReply struct {
	Error *Error `json:"error"`
}

type PullSnapshotViewReply

type PullSnapshotViewReply struct {
	ID    string `json:"id"`
	Count int    `json:"count"`
}

type PullSnapshotViewRequest

type PullSnapshotViewRequest struct {
	ID           string `json:"id"`
	LastKey      string `json:"lastKey"`
	AfterLastKey bool   `json:"afterLastKey"`
}

type RPC

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

func New

type Route

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

func NewRoute

func NewRoute(rpc *RPC, prefix string) *Route

func (*Route) Handle

func (r *Route) Handle(apiPath string, h func(*nats.Msg))

Jump to

Keyboard shortcuts

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