proto_rpc

package
v0.0.0-...-4faa3c3 Latest Latest
Warning

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

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

Documentation

Overview

Package proto_rpc is a generated protocol buffer package.

It is generated from these files:

server.proto

It has these top-level messages:

GetAllMappingMsg
GetAllMappingResponse
GetMappingMsg
GetMappingResponse
CreateMappingMsg
CreateMappingResponse
GetIdentityMsg
ObjectCountResponse
GetObjectMsg
OrderBy
DBSession
CreateObjectsMsg
CreateIdentityMsg
GetObjectResponse
GetObjectsResponse
Object

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterAPIServer

func RegisterAPIServer(s *grpc.Server, srv APIServer)

Types

type APIClient

type APIClient interface {
	CreateIdentity(ctx context.Context, in *CreateIdentityMsg, opts ...grpc.CallOption) (*GetObjectResponse, error)
	CreateObjects(ctx context.Context, in *CreateObjectsMsg, opts ...grpc.CallOption) (*GetObjectsResponse, error)
	CreateDBSession(ctx context.Context, in *DBSession, opts ...grpc.CallOption) (*DBSession, error)
	GetDBSession(ctx context.Context, in *DBSession, opts ...grpc.CallOption) (*DBSession, error)
	DeleteDBSession(ctx context.Context, in *DBSession, opts ...grpc.CallOption) (*DBSession, error)
	CommitSession(ctx context.Context, in *DBSession, opts ...grpc.CallOption) (*DBSession, error)
	RollbackSession(ctx context.Context, in *DBSession, opts ...grpc.CallOption) (*DBSession, error)
	GetObjects(ctx context.Context, in *GetObjectMsg, opts ...grpc.CallOption) (*GetObjectsResponse, error)
	CountObjects(ctx context.Context, in *GetObjectMsg, opts ...grpc.CallOption) (*ObjectCountResponse, error)
	GetIdentity(ctx context.Context, in *GetIdentityMsg, opts ...grpc.CallOption) (*GetObjectResponse, error)
	CreateMapping(ctx context.Context, in *CreateMappingMsg, opts ...grpc.CallOption) (*CreateMappingResponse, error)
	GetMapping(ctx context.Context, in *GetMappingMsg, opts ...grpc.CallOption) (*GetMappingResponse, error)
	GetAllMapping(ctx context.Context, in *GetAllMappingMsg, opts ...grpc.CallOption) (*GetAllMappingResponse, error)
}

func NewAPIClient

func NewAPIClient(cc *grpc.ClientConn) APIClient

type CreateIdentityMsg

type CreateIdentityMsg struct {
	Email     string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty" structs:"email,omitempty" mapstructure:"email,omitempty"`
	Password  string `` /* 132-byte string literal not displayed */
	Developer bool   `` /* 137-byte string literal not displayed */
}

CreateIdentityMsg represents an identity of a person or organization

func (*CreateIdentityMsg) Descriptor

func (*CreateIdentityMsg) Descriptor() ([]byte, []int)

func (*CreateIdentityMsg) GetDeveloper

func (m *CreateIdentityMsg) GetDeveloper() bool

func (*CreateIdentityMsg) GetEmail

func (m *CreateIdentityMsg) GetEmail() string

func (*CreateIdentityMsg) GetPassword

func (m *CreateIdentityMsg) GetPassword() string

func (*CreateIdentityMsg) ProtoMessage

func (*CreateIdentityMsg) ProtoMessage()

func (*CreateIdentityMsg) Reset

func (m *CreateIdentityMsg) Reset()

func (*CreateIdentityMsg) String

func (m *CreateIdentityMsg) String() string

type CreateMappingMsg

type CreateMappingMsg struct {
	// The name of the mapping
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty" structs:"name,omitempty" mapstructure:"name,omitempty"`
	// JSON mapping structure as bytes
	Mapping []byte `` /* 128-byte string literal not displayed */
}

CreateMappingMsg represents mapping creation parameters

func (*CreateMappingMsg) Descriptor

func (*CreateMappingMsg) Descriptor() ([]byte, []int)

func (*CreateMappingMsg) GetMapping

func (m *CreateMappingMsg) GetMapping() []byte

func (*CreateMappingMsg) GetName

func (m *CreateMappingMsg) GetName() string

func (*CreateMappingMsg) ProtoMessage

func (*CreateMappingMsg) ProtoMessage()

func (*CreateMappingMsg) Reset

func (m *CreateMappingMsg) Reset()

func (*CreateMappingMsg) String

func (m *CreateMappingMsg) String() string

type CreateMappingResponse

type CreateMappingResponse struct {
	Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"name,omitempty" structs:"name,omitempty" mapstructure:"name,omitempty"`
	ID   string `protobuf:"bytes,2,opt,name=ID,proto3" json:"id,omitempty" structs:"id,omitempty" mapstructure:"id,omitempty"`
}

func (*CreateMappingResponse) Descriptor

func (*CreateMappingResponse) Descriptor() ([]byte, []int)

func (*CreateMappingResponse) GetID

func (m *CreateMappingResponse) GetID() string

func (*CreateMappingResponse) GetName

func (m *CreateMappingResponse) GetName() string

func (*CreateMappingResponse) ProtoMessage

func (*CreateMappingResponse) ProtoMessage()

func (*CreateMappingResponse) Reset

func (m *CreateMappingResponse) Reset()

func (*CreateMappingResponse) String

func (m *CreateMappingResponse) String() string

type CreateObjectsMsg

type CreateObjectsMsg struct {
	// Must be a slice of Objects encoded in json
	Objects []byte `` /* 128-byte string literal not displayed */
	// Optional mapping to use during object decoding
	Mapping string `` /* 128-byte string literal not displayed */
}

CreateObjects represents a collection of objects to be created

func (*CreateObjectsMsg) Descriptor

func (*CreateObjectsMsg) Descriptor() ([]byte, []int)

func (*CreateObjectsMsg) GetMapping

func (m *CreateObjectsMsg) GetMapping() string

func (*CreateObjectsMsg) GetObjects

func (m *CreateObjectsMsg) GetObjects() []byte

func (*CreateObjectsMsg) ProtoMessage

func (*CreateObjectsMsg) ProtoMessage()

func (*CreateObjectsMsg) Reset

func (m *CreateObjectsMsg) Reset()

func (*CreateObjectsMsg) String

func (m *CreateObjectsMsg) String() string

type DBSession

type DBSession struct {
	ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"id,omitempty" structs:"id,omitempty" mapstructure:"id,omitempty"`
}

DBSession represents a database session request body

func (*DBSession) Descriptor

func (*DBSession) Descriptor() ([]byte, []int)

func (*DBSession) GetID

func (m *DBSession) GetID() string

func (*DBSession) ProtoMessage

func (*DBSession) ProtoMessage()

func (*DBSession) Reset

func (m *DBSession) Reset()

func (*DBSession) String

func (m *DBSession) String() string

type GetAllMappingMsg

type GetAllMappingMsg struct {
	Name  string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty" structs:"name,omitempty" mapstructure:"name,omitempty"`
	Limit int32  `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty" structs:"limit,omitempty" mapstructure:"limit,omitempty"`
}

GetAllMappingMsg represents a request for recent mappings

func (*GetAllMappingMsg) Descriptor

func (*GetAllMappingMsg) Descriptor() ([]byte, []int)

func (*GetAllMappingMsg) GetLimit

func (m *GetAllMappingMsg) GetLimit() int32

func (*GetAllMappingMsg) GetName

func (m *GetAllMappingMsg) GetName() string

func (*GetAllMappingMsg) ProtoMessage

func (*GetAllMappingMsg) ProtoMessage()

func (*GetAllMappingMsg) Reset

func (m *GetAllMappingMsg) Reset()

func (*GetAllMappingMsg) String

func (m *GetAllMappingMsg) String() string

type GetAllMappingResponse

type GetAllMappingResponse struct {
	Mappings []byte `` /* 132-byte string literal not displayed */
}

GetAllMappingResponse represents a response container all mappings encoded in JSON

func (*GetAllMappingResponse) Descriptor

func (*GetAllMappingResponse) Descriptor() ([]byte, []int)

func (*GetAllMappingResponse) GetMappings

func (m *GetAllMappingResponse) GetMappings() []byte

func (*GetAllMappingResponse) ProtoMessage

func (*GetAllMappingResponse) ProtoMessage()

func (*GetAllMappingResponse) Reset

func (m *GetAllMappingResponse) Reset()

func (*GetAllMappingResponse) String

func (m *GetAllMappingResponse) String() string

type GetIdentityMsg

type GetIdentityMsg struct {
	ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"id,omitempty" structs:"id,omitempty" mapstructure:"id,omitempty"`
}

GetIdentityMsg represents an identity request message

func (*GetIdentityMsg) Descriptor

func (*GetIdentityMsg) Descriptor() ([]byte, []int)

func (*GetIdentityMsg) GetID

func (m *GetIdentityMsg) GetID() string

func (*GetIdentityMsg) ProtoMessage

func (*GetIdentityMsg) ProtoMessage()

func (*GetIdentityMsg) Reset

func (m *GetIdentityMsg) Reset()

func (*GetIdentityMsg) String

func (m *GetIdentityMsg) String() string

type GetMappingMsg

type GetMappingMsg struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty" structs:"name,omitempty" mapstructure:"name,omitempty"`
}

GetMappingMsg represents a request for a mapping

func (*GetMappingMsg) Descriptor

func (*GetMappingMsg) Descriptor() ([]byte, []int)

func (*GetMappingMsg) GetName

func (m *GetMappingMsg) GetName() string

func (*GetMappingMsg) ProtoMessage

func (*GetMappingMsg) ProtoMessage()

func (*GetMappingMsg) Reset

func (m *GetMappingMsg) Reset()

func (*GetMappingMsg) String

func (m *GetMappingMsg) String() string

type GetMappingResponse

type GetMappingResponse struct {
	Mapping []byte `` /* 128-byte string literal not displayed */
}

GetMappingResponse represents a response containing a mapping

func (*GetMappingResponse) Descriptor

func (*GetMappingResponse) Descriptor() ([]byte, []int)

func (*GetMappingResponse) GetMapping

func (m *GetMappingResponse) GetMapping() []byte

func (*GetMappingResponse) ProtoMessage

func (*GetMappingResponse) ProtoMessage()

func (*GetMappingResponse) Reset

func (m *GetMappingResponse) Reset()

func (*GetMappingResponse) String

func (m *GetMappingResponse) String() string

type GetObjectMsg

type GetObjectMsg struct {
	Query   []byte     `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty" structs:"query,omitempty" mapstructure:"query,omitempty"`
	Owner   string     `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty" structs:"owner,omitempty" mapstructure:"owner,omitempty"`
	Creator string     `` /* 128-byte string literal not displayed */
	Order   []*OrderBy `protobuf:"bytes,4,rep,name=order" json:"order,omitempty" structs:"order,omitempty" mapstructure:"order,omitempty"`
	Limit   int32      `protobuf:"varint,5,opt,name=limit,proto3" json:"limit,omitempty" structs:"limit,omitempty" mapstructure:"limit,omitempty"`
	// Optional mapping to use during object decoding
	Mapping string `` /* 128-byte string literal not displayed */
}

GetObjectMsg represents query parameters for retrieving objects

func (*GetObjectMsg) Descriptor

func (*GetObjectMsg) Descriptor() ([]byte, []int)

func (*GetObjectMsg) GetCreator

func (m *GetObjectMsg) GetCreator() string

func (*GetObjectMsg) GetLimit

func (m *GetObjectMsg) GetLimit() int32

func (*GetObjectMsg) GetMapping

func (m *GetObjectMsg) GetMapping() string

func (*GetObjectMsg) GetOrder

func (m *GetObjectMsg) GetOrder() []*OrderBy

func (*GetObjectMsg) GetOwner

func (m *GetObjectMsg) GetOwner() string

func (*GetObjectMsg) GetQuery

func (m *GetObjectMsg) GetQuery() []byte

func (*GetObjectMsg) ProtoMessage

func (*GetObjectMsg) ProtoMessage()

func (*GetObjectMsg) Reset

func (m *GetObjectMsg) Reset()

func (*GetObjectMsg) String

func (m *GetObjectMsg) String() string

type GetObjectResponse

type GetObjectResponse struct {
	Object []byte `protobuf:"bytes,1,opt,name=object,proto3" json:"data,omitempty" structs:"data,omitempty" mapstructure:"data,omitempty"`
}

GetObjectResponse describes a response of multiple objects

func (*GetObjectResponse) Descriptor

func (*GetObjectResponse) Descriptor() ([]byte, []int)

func (*GetObjectResponse) GetObject

func (m *GetObjectResponse) GetObject() []byte

func (*GetObjectResponse) ProtoMessage

func (*GetObjectResponse) ProtoMessage()

func (*GetObjectResponse) Reset

func (m *GetObjectResponse) Reset()

func (*GetObjectResponse) String

func (m *GetObjectResponse) String() string

type GetObjectsResponse

type GetObjectsResponse struct {
	// Must contain list of maps [{...},{...}]
	Objects []byte `protobuf:"bytes,1,opt,name=objects,proto3" json:"data,omitempty" structs:"data,omitempty" mapstructure:"data,omitempty"`
}

GetObjectsResponse describes a response of multiple objects

func (*GetObjectsResponse) Descriptor

func (*GetObjectsResponse) Descriptor() ([]byte, []int)

func (*GetObjectsResponse) GetObjects

func (m *GetObjectsResponse) GetObjects() []byte

func (*GetObjectsResponse) ProtoMessage

func (*GetObjectsResponse) ProtoMessage()

func (*GetObjectsResponse) Reset

func (m *GetObjectsResponse) Reset()

func (*GetObjectsResponse) String

func (m *GetObjectsResponse) String() string

type Object

type Object struct {
	ID          string `protobuf:"bytes,1,opt,name=ID,proto3" json:"id,omitempty" structs:"id,omitempty" mapstructure:"id,omitempty"`
	OwnerID     string `` /* 131-byte string literal not displayed */
	CreatorID   string `` /* 139-byte string literal not displayed */
	PartitionID string `` /* 147-byte string literal not displayed */
	Key         string `protobuf:"bytes,5,opt,name=key,proto3" json:"key,omitempty" structs:"key,omitempty" mapstructure:"key,omitempty"`
	Value       string `protobuf:"bytes,6,opt,name=value,proto3" json:"value,omitempty" structs:"value,omitempty" mapstructure:"value,omitempty"`
	Protected   bool   `` /* 137-byte string literal not displayed */
	RefOnly     bool   `` /* 132-byte string literal not displayed */
	Timestamp   int64  `` /* 137-byte string literal not displayed */
	PrevHash    string `` /* 136-byte string literal not displayed */
	PeerHash    string `` /* 136-byte string literal not displayed */
	Hash        string `protobuf:"bytes,12,opt,name=hash,proto3" json:"hash,omitempty" structs:"hash,omitempty" mapstructure:"hash,omitempty"`
	Ref1        string `protobuf:"bytes,13,opt,name=ref1,proto3" json:"ref1,omitempty" structs:"ref1,omitempty" mapstructure:"ref1,omitempty"`
	Ref2        string `protobuf:"bytes,14,opt,name=ref2,proto3" json:"ref2,omitempty" structs:"ref2,omitempty" mapstructure:"ref2,omitempty"`
	Ref3        string `protobuf:"bytes,15,opt,name=ref3,proto3" json:"ref3,omitempty" structs:"ref3,omitempty" mapstructure:"ref3,omitempty"`
	Ref4        string `protobuf:"bytes,16,opt,name=ref4,proto3" json:"ref4,omitempty" structs:"ref4,omitempty" mapstructure:"ref4,omitempty"`
	Ref5        string `protobuf:"bytes,17,opt,name=ref5,proto3" json:"ref5,omitempty" structs:"ref5,omitempty" mapstructure:"ref5,omitempty"`
	Ref6        string `protobuf:"bytes,18,opt,name=ref6,proto3" json:"ref6,omitempty" structs:"ref6,omitempty" mapstructure:"ref6,omitempty"`
	Ref7        string `protobuf:"bytes,19,opt,name=ref7,proto3" json:"ref7,omitempty" structs:"ref7,omitempty" mapstructure:"ref7,omitempty"`
	Ref8        string `protobuf:"bytes,20,opt,name=ref8,proto3" json:"ref8,omitempty" structs:"ref8,omitempty" mapstructure:"ref8,omitempty"`
	Ref9        string `protobuf:"bytes,21,opt,name=ref9,proto3" json:"ref9,omitempty" structs:"ref9,omitempty" mapstructure:"ref9,omitempty"`
	Ref10       string `protobuf:"bytes,22,opt,name=ref10,proto3" json:"ref10,omitempty" structs:"ref10,omitempty" mapstructure:"ref10,omitempty"`
}

Object describes an object

func (*Object) Descriptor

func (*Object) Descriptor() ([]byte, []int)

func (*Object) GetCreatorID

func (m *Object) GetCreatorID() string

func (*Object) GetHash

func (m *Object) GetHash() string

func (*Object) GetID

func (m *Object) GetID() string

func (*Object) GetKey

func (m *Object) GetKey() string

func (*Object) GetOwnerID

func (m *Object) GetOwnerID() string

func (*Object) GetPartitionID

func (m *Object) GetPartitionID() string

func (*Object) GetPeerHash

func (m *Object) GetPeerHash() string

func (*Object) GetPrevHash

func (m *Object) GetPrevHash() string

func (*Object) GetProtected

func (m *Object) GetProtected() bool

func (*Object) GetRef1

func (m *Object) GetRef1() string

func (*Object) GetRef10

func (m *Object) GetRef10() string

func (*Object) GetRef2

func (m *Object) GetRef2() string

func (*Object) GetRef3

func (m *Object) GetRef3() string

func (*Object) GetRef4

func (m *Object) GetRef4() string

func (*Object) GetRef5

func (m *Object) GetRef5() string

func (*Object) GetRef6

func (m *Object) GetRef6() string

func (*Object) GetRef7

func (m *Object) GetRef7() string

func (*Object) GetRef8

func (m *Object) GetRef8() string

func (*Object) GetRef9

func (m *Object) GetRef9() string

func (*Object) GetRefOnly

func (m *Object) GetRefOnly() bool

func (*Object) GetTimestamp

func (m *Object) GetTimestamp() int64

func (*Object) GetValue

func (m *Object) GetValue() string

func (*Object) ProtoMessage

func (*Object) ProtoMessage()

func (*Object) Reset

func (m *Object) Reset()

func (*Object) String

func (m *Object) String() string

type ObjectCountResponse

type ObjectCountResponse struct {
	Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
}

ObjectCountResponse represents object counts

func (*ObjectCountResponse) Descriptor

func (*ObjectCountResponse) Descriptor() ([]byte, []int)

func (*ObjectCountResponse) GetCount

func (m *ObjectCountResponse) GetCount() int64

func (*ObjectCountResponse) ProtoMessage

func (*ObjectCountResponse) ProtoMessage()

func (*ObjectCountResponse) Reset

func (m *ObjectCountResponse) Reset()

func (*ObjectCountResponse) String

func (m *ObjectCountResponse) String() string

type OrderBy

type OrderBy struct {
	Field string `protobuf:"bytes,1,opt,name=field,proto3" json:"field,omitempty" structs:"field,omitempty" mapstructure:"field,omitempty"`
	Order int32  `protobuf:"varint,2,opt,name=order,proto3" json:"order,omitempty" structs:"order,omitempty" mapstructure:"order,omitempty"`
}

OrderBy represents how a field is ordered in a query

func (*OrderBy) Descriptor

func (*OrderBy) Descriptor() ([]byte, []int)

func (*OrderBy) GetField

func (m *OrderBy) GetField() string

func (*OrderBy) GetOrder

func (m *OrderBy) GetOrder() int32

func (*OrderBy) ProtoMessage

func (*OrderBy) ProtoMessage()

func (*OrderBy) Reset

func (m *OrderBy) Reset()

func (*OrderBy) String

func (m *OrderBy) String() string

Jump to

Keyboard shortcuts

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