Documentation ¶
Index ¶
- func NewCinemaServiceEndpoints() []*api.Endpoint
- func RegisterCinemaServiceHandler(s server.Server, hdlr CinemaServiceHandler, opts ...server.HandlerOption) error
- type CinemaService
- type CinemaServiceHandler
- type HallsRequest
- func (*HallsRequest) Descriptor() ([]byte, []int)
- func (m *HallsRequest) GetCinemaId() int64
- func (*HallsRequest) ProtoMessage()
- func (m *HallsRequest) Reset()
- func (m *HallsRequest) String() string
- func (m *HallsRequest) Validate() error
- func (m *HallsRequest) XXX_DiscardUnknown()
- func (m *HallsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HallsRequest) XXX_Merge(src proto.Message)
- func (m *HallsRequest) XXX_Size() int
- func (m *HallsRequest) XXX_Unmarshal(b []byte) error
- type HallsRequestValidationError
- func (e HallsRequestValidationError) Cause() error
- func (e HallsRequestValidationError) Error() string
- func (e HallsRequestValidationError) ErrorName() string
- func (e HallsRequestValidationError) Field() string
- func (e HallsRequestValidationError) Key() bool
- func (e HallsRequestValidationError) Reason() string
- type HallsResponse
- func (*HallsResponse) Descriptor() ([]byte, []int)
- func (m *HallsResponse) GetData() []*hall.Hall
- func (*HallsResponse) ProtoMessage()
- func (m *HallsResponse) Reset()
- func (m *HallsResponse) String() string
- func (m *HallsResponse) Validate() error
- func (m *HallsResponse) XXX_DiscardUnknown()
- func (m *HallsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HallsResponse) XXX_Merge(src proto.Message)
- func (m *HallsResponse) XXX_Size() int
- func (m *HallsResponse) XXX_Unmarshal(b []byte) error
- type HallsResponseValidationError
- func (e HallsResponseValidationError) Cause() error
- func (e HallsResponseValidationError) Error() string
- func (e HallsResponseValidationError) ErrorName() string
- func (e HallsResponseValidationError) Field() string
- func (e HallsResponseValidationError) Key() bool
- func (e HallsResponseValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterCinemaServiceHandler ¶
func RegisterCinemaServiceHandler(s server.Server, hdlr CinemaServiceHandler, opts ...server.HandlerOption) error
Types ¶
type CinemaService ¶
type CinemaService interface {
Halls(ctx context.Context, in *HallsRequest, opts ...client.CallOption) (*HallsResponse, error)
}
func NewCinemaService ¶
func NewCinemaService(name string, c client.Client) CinemaService
type CinemaServiceHandler ¶
type CinemaServiceHandler interface {
Halls(context.Context, *HallsRequest, *HallsResponse) error
}
type HallsRequest ¶
type HallsRequest struct {
CinemaId int64 `protobuf:"varint,1,opt,name=cinema_id,json=cinemaId,proto3" json:"cinema_id,omitempty"`
}
func (*HallsRequest) Descriptor ¶
func (*HallsRequest) Descriptor() ([]byte, []int)
func (*HallsRequest) GetCinemaId ¶
func (m *HallsRequest) GetCinemaId() int64
func (*HallsRequest) ProtoMessage ¶
func (*HallsRequest) ProtoMessage()
func (*HallsRequest) Reset ¶
func (m *HallsRequest) Reset()
func (*HallsRequest) String ¶
func (m *HallsRequest) String() string
func (*HallsRequest) Validate ¶
func (m *HallsRequest) Validate() error
Validate checks the field values on HallsRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*HallsRequest) XXX_DiscardUnknown ¶
func (m *HallsRequest) XXX_DiscardUnknown()
func (*HallsRequest) XXX_Marshal ¶
func (m *HallsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HallsRequest) XXX_Merge ¶
func (m *HallsRequest) XXX_Merge(src proto.Message)
func (*HallsRequest) XXX_Size ¶
func (m *HallsRequest) XXX_Size() int
func (*HallsRequest) XXX_Unmarshal ¶
func (m *HallsRequest) XXX_Unmarshal(b []byte) error
type HallsRequestValidationError ¶
type HallsRequestValidationError struct {
// contains filtered or unexported fields
}
HallsRequestValidationError is the validation error returned by HallsRequest.Validate if the designated constraints aren't met.
func (HallsRequestValidationError) Cause ¶
func (e HallsRequestValidationError) Cause() error
Cause function returns cause value.
func (HallsRequestValidationError) Error ¶
func (e HallsRequestValidationError) Error() string
Error satisfies the builtin error interface
func (HallsRequestValidationError) ErrorName ¶
func (e HallsRequestValidationError) ErrorName() string
ErrorName returns error name.
func (HallsRequestValidationError) Field ¶
func (e HallsRequestValidationError) Field() string
Field function returns field value.
func (HallsRequestValidationError) Key ¶
func (e HallsRequestValidationError) Key() bool
Key function returns key value.
func (HallsRequestValidationError) Reason ¶
func (e HallsRequestValidationError) Reason() string
Reason function returns reason value.
type HallsResponse ¶
type HallsResponse struct {
Data []*hall.Hall `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"`
}
func (*HallsResponse) Descriptor ¶
func (*HallsResponse) Descriptor() ([]byte, []int)
func (*HallsResponse) GetData ¶
func (m *HallsResponse) GetData() []*hall.Hall
func (*HallsResponse) ProtoMessage ¶
func (*HallsResponse) ProtoMessage()
func (*HallsResponse) Reset ¶
func (m *HallsResponse) Reset()
func (*HallsResponse) String ¶
func (m *HallsResponse) String() string
func (*HallsResponse) Validate ¶
func (m *HallsResponse) Validate() error
Validate checks the field values on HallsResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*HallsResponse) XXX_DiscardUnknown ¶
func (m *HallsResponse) XXX_DiscardUnknown()
func (*HallsResponse) XXX_Marshal ¶
func (m *HallsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HallsResponse) XXX_Merge ¶
func (m *HallsResponse) XXX_Merge(src proto.Message)
func (*HallsResponse) XXX_Size ¶
func (m *HallsResponse) XXX_Size() int
func (*HallsResponse) XXX_Unmarshal ¶
func (m *HallsResponse) XXX_Unmarshal(b []byte) error
type HallsResponseValidationError ¶
type HallsResponseValidationError struct {
// contains filtered or unexported fields
}
HallsResponseValidationError is the validation error returned by HallsResponse.Validate if the designated constraints aren't met.
func (HallsResponseValidationError) Cause ¶
func (e HallsResponseValidationError) Cause() error
Cause function returns cause value.
func (HallsResponseValidationError) Error ¶
func (e HallsResponseValidationError) Error() string
Error satisfies the builtin error interface
func (HallsResponseValidationError) ErrorName ¶
func (e HallsResponseValidationError) ErrorName() string
ErrorName returns error name.
func (HallsResponseValidationError) Field ¶
func (e HallsResponseValidationError) Field() string
Field function returns field value.
func (HallsResponseValidationError) Key ¶
func (e HallsResponseValidationError) Key() bool
Key function returns key value.
func (HallsResponseValidationError) Reason ¶
func (e HallsResponseValidationError) Reason() string
Reason function returns reason value.