Documentation ¶
Index ¶
- func NewCatalogServiceEndpoints() []*api.Endpoint
- func RegisterCatalogServiceHandler(s server.Server, hdlr CatalogServiceHandler, opts ...server.HandlerOption) error
- type CatalogService
- type CatalogServiceHandler
- type SyncRequest
- func (*SyncRequest) Descriptor() ([]byte, []int)
- func (*SyncRequest) ProtoMessage()
- func (m *SyncRequest) Reset()
- func (m *SyncRequest) String() string
- func (m *SyncRequest) Validate() error
- func (m *SyncRequest) XXX_DiscardUnknown()
- func (m *SyncRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SyncRequest) XXX_Merge(src proto.Message)
- func (m *SyncRequest) XXX_Size() int
- func (m *SyncRequest) XXX_Unmarshal(b []byte) error
- type SyncRequestValidationError
- func (e SyncRequestValidationError) Cause() error
- func (e SyncRequestValidationError) Error() string
- func (e SyncRequestValidationError) ErrorName() string
- func (e SyncRequestValidationError) Field() string
- func (e SyncRequestValidationError) Key() bool
- func (e SyncRequestValidationError) Reason() string
- type SyncResponse
- func (*SyncResponse) Descriptor() ([]byte, []int)
- func (m *SyncResponse) GetCinema() *shared.SyncResponse
- func (m *SyncResponse) GetCity() *shared.SyncResponse
- func (m *SyncResponse) GetCombine() *shared.SyncResponse
- func (m *SyncResponse) GetDiscount() *shared.SyncResponse
- func (m *SyncResponse) GetHall() *shared.SyncResponse
- func (m *SyncResponse) GetMovie() *shared.SyncResponse
- func (m *SyncResponse) GetMovieFormat() *shared.SyncResponse
- func (m *SyncResponse) GetSchedule() *shared.SyncResponse
- func (m *SyncResponse) GetSeance() *shared.SyncResponse
- func (m *SyncResponse) GetSeanceDiscounts() *shared.SyncResponse
- func (*SyncResponse) ProtoMessage()
- func (m *SyncResponse) Reset()
- func (m *SyncResponse) String() string
- func (m *SyncResponse) Validate() error
- func (m *SyncResponse) XXX_DiscardUnknown()
- func (m *SyncResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SyncResponse) XXX_Merge(src proto.Message)
- func (m *SyncResponse) XXX_Size() int
- func (m *SyncResponse) XXX_Unmarshal(b []byte) error
- type SyncResponseValidationError
- func (e SyncResponseValidationError) Cause() error
- func (e SyncResponseValidationError) Error() string
- func (e SyncResponseValidationError) ErrorName() string
- func (e SyncResponseValidationError) Field() string
- func (e SyncResponseValidationError) Key() bool
- func (e SyncResponseValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterCatalogServiceHandler ¶
func RegisterCatalogServiceHandler(s server.Server, hdlr CatalogServiceHandler, opts ...server.HandlerOption) error
Types ¶
type CatalogService ¶
type CatalogService interface {
Sync(ctx context.Context, in *SyncRequest, opts ...client.CallOption) (*SyncResponse, error)
}
func NewCatalogService ¶
func NewCatalogService(name string, c client.Client) CatalogService
type CatalogServiceHandler ¶
type CatalogServiceHandler interface {
Sync(context.Context, *SyncRequest, *SyncResponse) error
}
type SyncRequest ¶
type SyncRequest struct { }
func (*SyncRequest) Descriptor ¶
func (*SyncRequest) Descriptor() ([]byte, []int)
func (*SyncRequest) ProtoMessage ¶
func (*SyncRequest) ProtoMessage()
func (*SyncRequest) Reset ¶
func (m *SyncRequest) Reset()
func (*SyncRequest) String ¶
func (m *SyncRequest) String() string
func (*SyncRequest) Validate ¶
func (m *SyncRequest) Validate() error
Validate checks the field values on SyncRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*SyncRequest) XXX_DiscardUnknown ¶
func (m *SyncRequest) XXX_DiscardUnknown()
func (*SyncRequest) XXX_Marshal ¶
func (m *SyncRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SyncRequest) XXX_Merge ¶
func (m *SyncRequest) XXX_Merge(src proto.Message)
func (*SyncRequest) XXX_Size ¶
func (m *SyncRequest) XXX_Size() int
func (*SyncRequest) XXX_Unmarshal ¶
func (m *SyncRequest) XXX_Unmarshal(b []byte) error
type SyncRequestValidationError ¶
type SyncRequestValidationError struct {
// contains filtered or unexported fields
}
SyncRequestValidationError is the validation error returned by SyncRequest.Validate if the designated constraints aren't met.
func (SyncRequestValidationError) Cause ¶
func (e SyncRequestValidationError) Cause() error
Cause function returns cause value.
func (SyncRequestValidationError) Error ¶
func (e SyncRequestValidationError) Error() string
Error satisfies the builtin error interface
func (SyncRequestValidationError) ErrorName ¶
func (e SyncRequestValidationError) ErrorName() string
ErrorName returns error name.
func (SyncRequestValidationError) Field ¶
func (e SyncRequestValidationError) Field() string
Field function returns field value.
func (SyncRequestValidationError) Key ¶
func (e SyncRequestValidationError) Key() bool
Key function returns key value.
func (SyncRequestValidationError) Reason ¶
func (e SyncRequestValidationError) Reason() string
Reason function returns reason value.
type SyncResponse ¶
type SyncResponse struct { Combine *shared.SyncResponse `protobuf:"bytes,1,opt,name=combine,proto3" json:"combine,omitempty"` City *shared.SyncResponse `protobuf:"bytes,2,opt,name=city,proto3" json:"city,omitempty"` Cinema *shared.SyncResponse `protobuf:"bytes,3,opt,name=cinema,proto3" json:"cinema,omitempty"` Hall *shared.SyncResponse `protobuf:"bytes,4,opt,name=hall,proto3" json:"hall,omitempty"` Movie *shared.SyncResponse `protobuf:"bytes,5,opt,name=movie,proto3" json:"movie,omitempty"` Seance *shared.SyncResponse `protobuf:"bytes,6,opt,name=seance,proto3" json:"seance,omitempty"` SeanceDiscounts *shared.SyncResponse `protobuf:"bytes,7,opt,name=seance_discounts,json=seanceDiscounts,proto3" json:"seance_discounts,omitempty"` MovieFormat *shared.SyncResponse `protobuf:"bytes,8,opt,name=movie_format,json=movieFormat,proto3" json:"movie_format,omitempty"` Discount *shared.SyncResponse `protobuf:"bytes,9,opt,name=discount,proto3" json:"discount,omitempty"` Schedule *shared.SyncResponse `protobuf:"bytes,10,opt,name=schedule,proto3" json:"schedule,omitempty"` }
func (*SyncResponse) Descriptor ¶
func (*SyncResponse) Descriptor() ([]byte, []int)
func (*SyncResponse) GetCinema ¶
func (m *SyncResponse) GetCinema() *shared.SyncResponse
func (*SyncResponse) GetCity ¶
func (m *SyncResponse) GetCity() *shared.SyncResponse
func (*SyncResponse) GetCombine ¶
func (m *SyncResponse) GetCombine() *shared.SyncResponse
func (*SyncResponse) GetDiscount ¶
func (m *SyncResponse) GetDiscount() *shared.SyncResponse
func (*SyncResponse) GetHall ¶
func (m *SyncResponse) GetHall() *shared.SyncResponse
func (*SyncResponse) GetMovie ¶
func (m *SyncResponse) GetMovie() *shared.SyncResponse
func (*SyncResponse) GetMovieFormat ¶
func (m *SyncResponse) GetMovieFormat() *shared.SyncResponse
func (*SyncResponse) GetSchedule ¶
func (m *SyncResponse) GetSchedule() *shared.SyncResponse
func (*SyncResponse) GetSeance ¶
func (m *SyncResponse) GetSeance() *shared.SyncResponse
func (*SyncResponse) GetSeanceDiscounts ¶
func (m *SyncResponse) GetSeanceDiscounts() *shared.SyncResponse
func (*SyncResponse) ProtoMessage ¶
func (*SyncResponse) ProtoMessage()
func (*SyncResponse) Reset ¶
func (m *SyncResponse) Reset()
func (*SyncResponse) String ¶
func (m *SyncResponse) String() string
func (*SyncResponse) Validate ¶
func (m *SyncResponse) Validate() error
Validate checks the field values on SyncResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*SyncResponse) XXX_DiscardUnknown ¶
func (m *SyncResponse) XXX_DiscardUnknown()
func (*SyncResponse) XXX_Marshal ¶
func (m *SyncResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SyncResponse) XXX_Merge ¶
func (m *SyncResponse) XXX_Merge(src proto.Message)
func (*SyncResponse) XXX_Size ¶
func (m *SyncResponse) XXX_Size() int
func (*SyncResponse) XXX_Unmarshal ¶
func (m *SyncResponse) XXX_Unmarshal(b []byte) error
type SyncResponseValidationError ¶
type SyncResponseValidationError struct {
// contains filtered or unexported fields
}
SyncResponseValidationError is the validation error returned by SyncResponse.Validate if the designated constraints aren't met.
func (SyncResponseValidationError) Cause ¶
func (e SyncResponseValidationError) Cause() error
Cause function returns cause value.
func (SyncResponseValidationError) Error ¶
func (e SyncResponseValidationError) Error() string
Error satisfies the builtin error interface
func (SyncResponseValidationError) ErrorName ¶
func (e SyncResponseValidationError) ErrorName() string
ErrorName returns error name.
func (SyncResponseValidationError) Field ¶
func (e SyncResponseValidationError) Field() string
Field function returns field value.
func (SyncResponseValidationError) Key ¶
func (e SyncResponseValidationError) Key() bool
Key function returns key value.
func (SyncResponseValidationError) Reason ¶
func (e SyncResponseValidationError) Reason() string
Reason function returns reason value.