propagator

package
Version: v0.0.0-...-81b1152 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2016 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package propagator is a generated protocol buffer package.

It is generated from these files:

propagator.proto

It has these top-level messages:

Void
PutReq
GetReq
RmReq
MvReq
Record

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterPropServer

func RegisterPropServer(s *grpc.Server, srv PropServer)

Types

type GetReq

type GetReq struct {
	AccessToken   string `protobuf:"bytes,1,opt,name=access_token" json:"access_token,omitempty"`
	Path          string `protobuf:"bytes,2,opt,name=path" json:"path,omitempty"`
	ForceCreation bool   `protobuf:"varint,3,opt,name=force_creation" json:"force_creation,omitempty"`
}

func (*GetReq) ProtoMessage

func (*GetReq) ProtoMessage()

func (*GetReq) Reset

func (m *GetReq) Reset()

func (*GetReq) String

func (m *GetReq) String() string

type MvReq

type MvReq struct {
	AccessToken string `protobuf:"bytes,1,opt,name=access_token" json:"access_token,omitempty"`
	Src         string `protobuf:"bytes,2,opt,name=src" json:"src,omitempty"`
	Dst         string `protobuf:"bytes,3,opt,name=dst" json:"dst,omitempty"`
}

func (*MvReq) ProtoMessage

func (*MvReq) ProtoMessage()

func (*MvReq) Reset

func (m *MvReq) Reset()

func (*MvReq) String

func (m *MvReq) String() string

type PropClient

type PropClient interface {
	Put(ctx context.Context, in *PutReq, opts ...grpc.CallOption) (*Void, error)
	Get(ctx context.Context, in *GetReq, opts ...grpc.CallOption) (*Record, error)
	Mv(ctx context.Context, in *MvReq, opts ...grpc.CallOption) (*Void, error)
	Rm(ctx context.Context, in *RmReq, opts ...grpc.CallOption) (*Void, error)
}

func NewPropClient

func NewPropClient(cc *grpc.ClientConn) PropClient

type PropServer

type PropServer interface {
	Put(context.Context, *PutReq) (*Void, error)
	Get(context.Context, *GetReq) (*Record, error)
	Mv(context.Context, *MvReq) (*Void, error)
	Rm(context.Context, *RmReq) (*Void, error)
}

type PutReq

type PutReq struct {
	AccessToken string `protobuf:"bytes,1,opt,name=access_token" json:"access_token,omitempty"`
	Path        string `protobuf:"bytes,2,opt,name=path" json:"path,omitempty"`
}

func (*PutReq) ProtoMessage

func (*PutReq) ProtoMessage()

func (*PutReq) Reset

func (m *PutReq) Reset()

func (*PutReq) String

func (m *PutReq) String() string

type Record

type Record struct {
	Path     string `protobuf:"bytes,1,opt,name=path" json:"path,omitempty"`
	Modified uint32 `protobuf:"varint,2,opt,name=modified" json:"modified,omitempty"`
	Etag     string `protobuf:"bytes,3,opt,name=etag" json:"etag,omitempty"`
}

func (*Record) ProtoMessage

func (*Record) ProtoMessage()

func (*Record) Reset

func (m *Record) Reset()

func (*Record) String

func (m *Record) String() string

type RmReq

type RmReq struct {
	AccessToken string `protobuf:"bytes,1,opt,name=access_token" json:"access_token,omitempty"`
	Path        string `protobuf:"bytes,2,opt,name=path" json:"path,omitempty"`
}

func (*RmReq) ProtoMessage

func (*RmReq) ProtoMessage()

func (*RmReq) Reset

func (m *RmReq) Reset()

func (*RmReq) String

func (m *RmReq) String() string

type Void

type Void struct {
}

func (*Void) ProtoMessage

func (*Void) ProtoMessage()

func (*Void) Reset

func (m *Void) Reset()

func (*Void) String

func (m *Void) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL