crud

package
v0.0.0-...-cad71b5 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package crud is a generated protocol buffer package.

It is generated from these files:

pb/crud/crud_service.proto

It has these top-level messages:

Key
Record
UpsertResponse
DeleteResponse

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterCRUDServiceServer

func RegisterCRUDServiceServer(s *grpc.Server, srv CRUDServiceServer)

Types

type CRUDServiceClient

type CRUDServiceClient interface {
	Upsert(ctx context.Context, in *Record, opts ...grpc.CallOption) (*UpsertResponse, error)
	Read(ctx context.Context, in *Key, opts ...grpc.CallOption) (*Record, error)
	Delete(ctx context.Context, in *Key, opts ...grpc.CallOption) (*DeleteResponse, error)
}

func NewCRUDServiceClient

func NewCRUDServiceClient(cc *grpc.ClientConn) CRUDServiceClient

type CRUDServiceServer

type CRUDServiceServer interface {
	Upsert(context.Context, *Record) (*UpsertResponse, error)
	Read(context.Context, *Key) (*Record, error)
	Delete(context.Context, *Key) (*DeleteResponse, error)
}

type DeleteResponse

type DeleteResponse struct {
}

func (*DeleteResponse) Descriptor

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

func (*DeleteResponse) ProtoMessage

func (*DeleteResponse) ProtoMessage()

func (*DeleteResponse) Reset

func (m *DeleteResponse) Reset()

func (*DeleteResponse) String

func (m *DeleteResponse) String() string

type Key

type Key struct {
	MovieID int32 `protobuf:"varint,1,opt,name=movieID" json:"movieID,omitempty"`
	UserID  int32 `protobuf:"varint,2,opt,name=userID" json:"userID,omitempty"`
}

func (*Key) Descriptor

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

func (*Key) GetMovieID

func (m *Key) GetMovieID() int32

func (*Key) GetUserID

func (m *Key) GetUserID() int32

func (*Key) ProtoMessage

func (*Key) ProtoMessage()

func (*Key) Reset

func (m *Key) Reset()

func (*Key) String

func (m *Key) String() string

type Record

type Record struct {
	MovieID int32   `protobuf:"varint,1,opt,name=movieID" json:"movieID,omitempty"`
	UserID  int32   `protobuf:"varint,2,opt,name=userID" json:"userID,omitempty"`
	Rating  float32 `protobuf:"fixed32,3,opt,name=rating" json:"rating,omitempty"`
}

func (*Record) Descriptor

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

func (*Record) GetMovieID

func (m *Record) GetMovieID() int32

func (*Record) GetRating

func (m *Record) GetRating() float32

func (*Record) GetUserID

func (m *Record) GetUserID() int32

func (*Record) ProtoMessage

func (*Record) ProtoMessage()

func (*Record) Reset

func (m *Record) Reset()

func (*Record) String

func (m *Record) String() string

type UpsertResponse

type UpsertResponse struct {
}

func (*UpsertResponse) Descriptor

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

func (*UpsertResponse) ProtoMessage

func (*UpsertResponse) ProtoMessage()

func (*UpsertResponse) Reset

func (m *UpsertResponse) Reset()

func (*UpsertResponse) String

func (m *UpsertResponse) String() string

Jump to

Keyboard shortcuts

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