cinema

package
v0.9.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCinemaServiceEndpoints

func NewCinemaServiceEndpoints() []*api.Endpoint

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

Cause function returns cause value.

func (HallsRequestValidationError) Error

Error satisfies the builtin error interface

func (HallsRequestValidationError) ErrorName

func (e HallsRequestValidationError) ErrorName() string

ErrorName returns error name.

func (HallsRequestValidationError) Field

Field function returns field value.

func (HallsRequestValidationError) Key

Key function returns key value.

func (HallsRequestValidationError) Reason

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

Cause function returns cause value.

func (HallsResponseValidationError) Error

Error satisfies the builtin error interface

func (HallsResponseValidationError) ErrorName

func (e HallsResponseValidationError) ErrorName() string

ErrorName returns error name.

func (HallsResponseValidationError) Field

Field function returns field value.

func (HallsResponseValidationError) Key

Key function returns key value.

func (HallsResponseValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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