server

package
v0.0.0-...-da93f2a Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

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 (*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 (*BookstoreServerV1Impl) DeleteBook

func (*BookstoreServerV1Impl) DeleteShelf

func (*BookstoreServerV1Impl) GetBook

func (*BookstoreServerV1Impl) GetShelf

func (*BookstoreServerV1Impl) ListBooks

func (*BookstoreServerV1Impl) ListShelves

func (*BookstoreServerV1Impl) ReturnBadStatus

func (s *BookstoreServerV1Impl) ReturnBadStatus(ctx context.Context, req *bspbv1.Empty) (*bspbv1.Empty, error)

type BookstoreServerV2Impl

type BookstoreServerV2Impl struct {
	// contains filtered or unexported fields
}

BookstoreServerV2Impl represents the gRPC Bookstore health-checkable server.

func (*BookstoreServerV2Impl) GetShelf

func (*BookstoreServerV2Impl) GetShelfAutoBind

func (s *BookstoreServerV2Impl) GetShelfAutoBind(ctx context.Context, req *bspbv2.GetShelfRequest) (*bspbv2.Shelf, error)

Jump to

Keyboard shortcuts

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