Documentation ¶
Index ¶
Constants ¶
View Source
const ( Available = iota + 1 NotAvailable )
Variables ¶
View Source
var Statuss = []Status{ Available, NotAvailable, }
Functions ¶
func NewGRPCServer ¶
func NewGRPCServer(endpoints DVDEndpoints, ot stdopentracing.Tracer, logger log.Logger) pb.DVDRentalServer
Types ¶
type CreateDVDRequest ¶
type CreateDVDRequest struct {
Name string `json:"name"`
}
type CreateDVDResponse ¶
type CreateDVDResponse struct {
Err error `json:"error,omitempty"`
}
type DVDEndpoints ¶
func NewDVDEndpoint ¶
func NewDVDEndpoint(svc Service, ot stdopentracing.Tracer) DVDEndpoints
type Middleware ¶
func NewLoggerMiddleware ¶
func NewLoggerMiddleware(logger log.Logger) Middleware
func NewMetrictMiddleware ¶
func NewMetrictMiddleware(counter metrics.Counter, histogram metrics.Histogram) Middleware
type RentDVDRequest ¶
type RentDVDRequest struct {
ID string `json:"id"`
}
type RentDVDResponse ¶
type RentDVDResponse struct {
Err error `json:"error,omitempty"`
}
type Repository ¶
Click to show internal directories.
Click to hide internal directories.