catalog

package
v2.7.1 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2021 License: AGPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCatalogServiceEndpoints

func NewCatalogServiceEndpoints() []*api.Endpoint

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

Cause function returns cause value.

func (SyncRequestValidationError) Error

Error satisfies the builtin error interface

func (SyncRequestValidationError) ErrorName

func (e SyncRequestValidationError) ErrorName() string

ErrorName returns error name.

func (SyncRequestValidationError) Field

Field function returns field value.

func (SyncRequestValidationError) Key

Key function returns key value.

func (SyncRequestValidationError) Reason

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

Cause function returns cause value.

func (SyncResponseValidationError) Error

Error satisfies the builtin error interface

func (SyncResponseValidationError) ErrorName

func (e SyncResponseValidationError) ErrorName() string

ErrorName returns error name.

func (SyncResponseValidationError) Field

Field function returns field value.

func (SyncResponseValidationError) Key

Key function returns key value.

func (SyncResponseValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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