book_service

package
v0.0.0-...-65755b8 Latest Latest
Warning

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

Go to latest
Published: May 25, 2019 License: MIT Imports: 7 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterBookServer

func RegisterBookServer(s *grpc.Server, srv BookServer)

Types

type BookClient

type BookClient interface {
	// Returns a book
	GetBook(ctx context.Context, in *BookRequest, opts ...grpc.CallOption) (*BookResponse, error)
}

BookClient is the client API for Book service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewBookClient

func NewBookClient(cc *grpc.ClientConn) BookClient

type BookRequest

type BookRequest struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*BookRequest) Descriptor

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

func (*BookRequest) ProtoMessage

func (*BookRequest) ProtoMessage()

func (*BookRequest) Reset

func (m *BookRequest) Reset()

func (*BookRequest) String

func (m *BookRequest) String() string

func (*BookRequest) XXX_DiscardUnknown

func (m *BookRequest) XXX_DiscardUnknown()

func (*BookRequest) XXX_Marshal

func (m *BookRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BookRequest) XXX_Merge

func (m *BookRequest) XXX_Merge(src proto.Message)

func (*BookRequest) XXX_Size

func (m *BookRequest) XXX_Size() int

func (*BookRequest) XXX_Unmarshal

func (m *BookRequest) XXX_Unmarshal(b []byte) error

type BookResponse

type BookResponse struct {
	Uuid                 string   `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
	Name                 string   `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Isbn                 int64    `protobuf:"varint,3,opt,name=isbn,proto3" json:"isbn,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*BookResponse) Descriptor

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

func (*BookResponse) GetIsbn

func (m *BookResponse) GetIsbn() int64

func (*BookResponse) GetName

func (m *BookResponse) GetName() string

func (*BookResponse) GetUuid

func (m *BookResponse) GetUuid() string

func (*BookResponse) ProtoMessage

func (*BookResponse) ProtoMessage()

func (*BookResponse) Reset

func (m *BookResponse) Reset()

func (*BookResponse) String

func (m *BookResponse) String() string

func (*BookResponse) XXX_DiscardUnknown

func (m *BookResponse) XXX_DiscardUnknown()

func (*BookResponse) XXX_Marshal

func (m *BookResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BookResponse) XXX_Merge

func (m *BookResponse) XXX_Merge(src proto.Message)

func (*BookResponse) XXX_Size

func (m *BookResponse) XXX_Size() int

func (*BookResponse) XXX_Unmarshal

func (m *BookResponse) XXX_Unmarshal(b []byte) error

type BookServer

type BookServer interface {
	// Returns a book
	GetBook(context.Context, *BookRequest) (*BookResponse, error)
}

BookServer is the server API for Book service.

type UnimplementedBookServer

type UnimplementedBookServer struct {
}

UnimplementedBookServer can be embedded to have forward compatible implementations.

func (*UnimplementedBookServer) GetBook

Jump to

Keyboard shortcuts

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