rpc

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2020 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewReservationServiceEndpoints

func NewReservationServiceEndpoints() []*api.Endpoint

func RegisterReservationServiceHandler

func RegisterReservationServiceHandler(s server.Server, hdlr ReservationServiceHandler, opts ...server.HandlerOption) error

Types

type ReservationCheckRequest

type ReservationCheckRequest struct {
	Date                  string `protobuf:"bytes,1,opt,name=date,proto3" json:"date"`
	HangedAfterSec        int64  `protobuf:"varint,2,opt,name=hanged_after_sec,json=hangedAfterSec,proto3" json:"hanged_after_sec"`
	UntilAutoCancelingSec int64  `protobuf:"varint,3,opt,name=until_auto_canceling_sec,json=untilAutoCancelingSec,proto3" json:"until_auto_canceling_sec"`
	Retries               int64  `protobuf:"varint,4,opt,name=retries,proto3" json:"retries"`
}

func (*ReservationCheckRequest) Descriptor

func (*ReservationCheckRequest) Descriptor() ([]byte, []int)

func (*ReservationCheckRequest) GetDate

func (m *ReservationCheckRequest) GetDate() string

func (*ReservationCheckRequest) GetHangedAfterSec

func (m *ReservationCheckRequest) GetHangedAfterSec() int64

func (*ReservationCheckRequest) GetRetries

func (m *ReservationCheckRequest) GetRetries() int64

func (*ReservationCheckRequest) GetUntilAutoCancelingSec

func (m *ReservationCheckRequest) GetUntilAutoCancelingSec() int64

func (*ReservationCheckRequest) ProtoMessage

func (*ReservationCheckRequest) ProtoMessage()

func (*ReservationCheckRequest) Reset

func (m *ReservationCheckRequest) Reset()

func (*ReservationCheckRequest) String

func (m *ReservationCheckRequest) String() string

func (*ReservationCheckRequest) Validate

func (m *ReservationCheckRequest) Validate() error

Validate checks the field values on ReservationCheckRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*ReservationCheckRequest) XXX_DiscardUnknown

func (m *ReservationCheckRequest) XXX_DiscardUnknown()

func (*ReservationCheckRequest) XXX_Marshal

func (m *ReservationCheckRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReservationCheckRequest) XXX_Merge

func (m *ReservationCheckRequest) XXX_Merge(src proto.Message)

func (*ReservationCheckRequest) XXX_Size

func (m *ReservationCheckRequest) XXX_Size() int

func (*ReservationCheckRequest) XXX_Unmarshal

func (m *ReservationCheckRequest) XXX_Unmarshal(b []byte) error

type ReservationCheckRequestValidationError

type ReservationCheckRequestValidationError struct {
	// contains filtered or unexported fields
}

ReservationCheckRequestValidationError is the validation error returned by ReservationCheckRequest.Validate if the designated constraints aren't met.

func (ReservationCheckRequestValidationError) Cause

Cause function returns cause value.

func (ReservationCheckRequestValidationError) Error

Error satisfies the builtin error interface

func (ReservationCheckRequestValidationError) ErrorName

ErrorName returns error name.

func (ReservationCheckRequestValidationError) Field

Field function returns field value.

func (ReservationCheckRequestValidationError) Key

Key function returns key value.

func (ReservationCheckRequestValidationError) Reason

Reason function returns reason value.

type ReservationCheckResponse

type ReservationCheckResponse struct {
}

func (*ReservationCheckResponse) Descriptor

func (*ReservationCheckResponse) Descriptor() ([]byte, []int)

func (*ReservationCheckResponse) ProtoMessage

func (*ReservationCheckResponse) ProtoMessage()

func (*ReservationCheckResponse) Reset

func (m *ReservationCheckResponse) Reset()

func (*ReservationCheckResponse) String

func (m *ReservationCheckResponse) String() string

func (*ReservationCheckResponse) Validate

func (m *ReservationCheckResponse) Validate() error

Validate checks the field values on ReservationCheckResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

func (*ReservationCheckResponse) XXX_DiscardUnknown

func (m *ReservationCheckResponse) XXX_DiscardUnknown()

func (*ReservationCheckResponse) XXX_Marshal

func (m *ReservationCheckResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReservationCheckResponse) XXX_Merge

func (m *ReservationCheckResponse) XXX_Merge(src proto.Message)

func (*ReservationCheckResponse) XXX_Size

func (m *ReservationCheckResponse) XXX_Size() int

func (*ReservationCheckResponse) XXX_Unmarshal

func (m *ReservationCheckResponse) XXX_Unmarshal(b []byte) error

type ReservationCheckResponseValidationError

type ReservationCheckResponseValidationError struct {
	// contains filtered or unexported fields
}

ReservationCheckResponseValidationError is the validation error returned by ReservationCheckResponse.Validate if the designated constraints aren't met.

func (ReservationCheckResponseValidationError) Cause

Cause function returns cause value.

func (ReservationCheckResponseValidationError) Error

Error satisfies the builtin error interface

func (ReservationCheckResponseValidationError) ErrorName

ErrorName returns error name.

func (ReservationCheckResponseValidationError) Field

Field function returns field value.

func (ReservationCheckResponseValidationError) Key

Key function returns key value.

func (ReservationCheckResponseValidationError) Reason

Reason function returns reason value.

type ReservationService

type ReservationService interface {
	Check(ctx context.Context, in *ReservationCheckRequest, opts ...client.CallOption) (*ReservationCheckResponse, error)
}

func NewReservationService

func NewReservationService(name string, c client.Client) ReservationService

type ReservationServiceHandler

type ReservationServiceHandler interface {
	Check(context.Context, *ReservationCheckRequest, *ReservationCheckResponse) error
}

Jump to

Keyboard shortcuts

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