Documentation ¶
Index ¶
- type BookstoreServer
- type BookstoreServerV1Impl
- func (s *BookstoreServerV1Impl) CreateBook(ctx context.Context, req *bspbv1.CreateBookRequest) (*bspbv1.Book, error)
- func (s *BookstoreServerV1Impl) CreateBookWithCustomVerb(ctx context.Context, req *bspbv1.CreateBookRequest) (*bspbv1.Book, error)
- func (s *BookstoreServerV1Impl) CreateBookWithTrailingDoubleWildcard(ctx context.Context, req *bspbv1.CreateBookRequest) (*bspbv1.Book, error)
- func (s *BookstoreServerV1Impl) CreateBookWithTrailingSingleWildcard(ctx context.Context, req *bspbv1.CreateBookRequest) (*bspbv1.Book, error)
- func (s *BookstoreServerV1Impl) CreateShelf(ctx context.Context, req *bspbv1.CreateShelfRequest) (*bspbv1.Shelf, error)
- func (s *BookstoreServerV1Impl) DeleteBook(ctx context.Context, req *bspbv1.DeleteBookRequest) (*bspbv1.Empty, error)
- func (s *BookstoreServerV1Impl) DeleteShelf(ctx context.Context, req *bspbv1.DeleteShelfRequest) (*bspbv1.Empty, error)
- func (s *BookstoreServerV1Impl) GetBook(ctx context.Context, req *bspbv1.GetBookRequest) (*bspbv1.Book, error)
- func (s *BookstoreServerV1Impl) GetShelf(ctx context.Context, req *bspbv1.GetShelfRequest) (*bspbv1.Shelf, error)
- func (s *BookstoreServerV1Impl) ListBooks(ctx context.Context, req *bspbv1.ListBooksRequest) (*bspbv1.ListBooksResponse, error)
- func (s *BookstoreServerV1Impl) ListShelves(ctx context.Context, req *bspbv1.Empty) (*bspbv1.ListShelvesResponse, error)
- func (s *BookstoreServerV1Impl) ReturnBadStatus(ctx context.Context, req *bspbv1.Empty) (*bspbv1.Empty, error)
- type BookstoreServerV2Impl
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BookstoreServer ¶
type BookstoreServer struct {
// contains filtered or unexported fields
}
BookstoreServer represents two different version gRPC Bookstore servers sharing same listener.
func NewBookstoreServer ¶
func NewBookstoreServer(port uint16, enableTLS, useUnAuthorizedCert bool, rootCertFile string) (*BookstoreServer, error)
NewBookstoreServer creates a new server but does not start it. This sets up the listening address.
func (*BookstoreServer) SetHealthState ¶
func (s *BookstoreServer) SetHealthState(service string, healthy bool)
func (*BookstoreServer) StartServer ¶
func (s *BookstoreServer) StartServer()
func (*BookstoreServer) StopServer ¶
func (s *BookstoreServer) StopServer()
type BookstoreServerV1Impl ¶
type BookstoreServerV1Impl struct {
// contains filtered or unexported fields
}
BookstoreServerV1Impl represents the gRPC Bookstore health-checkable server.
func (*BookstoreServerV1Impl) CreateBook ¶
func (s *BookstoreServerV1Impl) CreateBook(ctx context.Context, req *bspbv1.CreateBookRequest) (*bspbv1.Book, error)
func (*BookstoreServerV1Impl) CreateBookWithCustomVerb ¶
func (s *BookstoreServerV1Impl) CreateBookWithCustomVerb(ctx context.Context, req *bspbv1.CreateBookRequest) (*bspbv1.Book, error)
func (*BookstoreServerV1Impl) CreateBookWithTrailingDoubleWildcard ¶
func (s *BookstoreServerV1Impl) CreateBookWithTrailingDoubleWildcard(ctx context.Context, req *bspbv1.CreateBookRequest) (*bspbv1.Book, error)
func (*BookstoreServerV1Impl) CreateBookWithTrailingSingleWildcard ¶
func (s *BookstoreServerV1Impl) CreateBookWithTrailingSingleWildcard(ctx context.Context, req *bspbv1.CreateBookRequest) (*bspbv1.Book, error)
func (*BookstoreServerV1Impl) CreateShelf ¶
func (s *BookstoreServerV1Impl) CreateShelf(ctx context.Context, req *bspbv1.CreateShelfRequest) (*bspbv1.Shelf, error)
func (*BookstoreServerV1Impl) DeleteBook ¶
func (s *BookstoreServerV1Impl) DeleteBook(ctx context.Context, req *bspbv1.DeleteBookRequest) (*bspbv1.Empty, error)
func (*BookstoreServerV1Impl) DeleteShelf ¶
func (s *BookstoreServerV1Impl) DeleteShelf(ctx context.Context, req *bspbv1.DeleteShelfRequest) (*bspbv1.Empty, error)
func (*BookstoreServerV1Impl) GetBook ¶
func (s *BookstoreServerV1Impl) GetBook(ctx context.Context, req *bspbv1.GetBookRequest) (*bspbv1.Book, error)
func (*BookstoreServerV1Impl) GetShelf ¶
func (s *BookstoreServerV1Impl) GetShelf(ctx context.Context, req *bspbv1.GetShelfRequest) (*bspbv1.Shelf, error)
func (*BookstoreServerV1Impl) ListBooks ¶
func (s *BookstoreServerV1Impl) ListBooks(ctx context.Context, req *bspbv1.ListBooksRequest) (*bspbv1.ListBooksResponse, error)
func (*BookstoreServerV1Impl) ListShelves ¶
func (s *BookstoreServerV1Impl) ListShelves(ctx context.Context, req *bspbv1.Empty) (*bspbv1.ListShelvesResponse, error)
func (*BookstoreServerV1Impl) ReturnBadStatus ¶
type BookstoreServerV2Impl ¶
type BookstoreServerV2Impl struct {
// contains filtered or unexported fields
}
BookstoreServerV2Impl represents the gRPC Bookstore health-checkable server.
func (*BookstoreServerV2Impl) GetShelf ¶
func (s *BookstoreServerV2Impl) GetShelf(ctx context.Context, req *bspbv2.GetShelfRequest) (*bspbv2.Shelf, error)
func (*BookstoreServerV2Impl) GetShelfAutoBind ¶
func (s *BookstoreServerV2Impl) GetShelfAutoBind(ctx context.Context, req *bspbv2.GetShelfRequest) (*bspbv2.Shelf, error)
Click to show internal directories.
Click to hide internal directories.