Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterCampgroundsServiceServer(s grpc.ServiceRegistrar, srv CampgroundsServiceServer)
- type Booking
- func (*Booking) Descriptor() ([]byte, []int)deprecated
- func (x *Booking) GetActive() bool
- func (x *Booking) GetBookingId() string
- func (x *Booking) GetCampsiteId() string
- func (x *Booking) GetEmail() string
- func (x *Booking) GetEndDate() string
- func (x *Booking) GetFullName() string
- func (x *Booking) GetStartDate() string
- func (*Booking) ProtoMessage()
- func (x *Booking) ProtoReflect() protoreflect.Message
- func (x *Booking) Reset()
- func (x *Booking) String() string
- type CampgroundsServiceClient
- type CampgroundsServiceServer
- type Campsite
- func (*Campsite) Descriptor() ([]byte, []int)deprecated
- func (x *Campsite) GetActive() bool
- func (x *Campsite) GetCampsiteCode() string
- func (x *Campsite) GetCampsiteId() string
- func (x *Campsite) GetCapacity() int32
- func (x *Campsite) GetDrinkingWater() bool
- func (x *Campsite) GetFirePit() bool
- func (x *Campsite) GetPicnicTable() bool
- func (x *Campsite) GetRestrooms() bool
- func (*Campsite) ProtoMessage()
- func (x *Campsite) ProtoReflect() protoreflect.Message
- func (x *Campsite) Reset()
- func (x *Campsite) String() string
- type CancelBookingRequest
- func (*CancelBookingRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CancelBookingRequest) GetBookingId() string
- func (*CancelBookingRequest) ProtoMessage()
- func (x *CancelBookingRequest) ProtoReflect() protoreflect.Message
- func (x *CancelBookingRequest) Reset()
- func (x *CancelBookingRequest) String() string
- type CancelBookingResponse
- type CreateBookingRequest
- func (*CreateBookingRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateBookingRequest) GetCampsiteId() string
- func (x *CreateBookingRequest) GetEmail() string
- func (x *CreateBookingRequest) GetEndDate() string
- func (x *CreateBookingRequest) GetFullName() string
- func (x *CreateBookingRequest) GetStartDate() string
- func (*CreateBookingRequest) ProtoMessage()
- func (x *CreateBookingRequest) ProtoReflect() protoreflect.Message
- func (x *CreateBookingRequest) Reset()
- func (x *CreateBookingRequest) String() string
- type CreateBookingResponse
- func (*CreateBookingResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateBookingResponse) GetBookingId() string
- func (*CreateBookingResponse) ProtoMessage()
- func (x *CreateBookingResponse) ProtoReflect() protoreflect.Message
- func (x *CreateBookingResponse) Reset()
- func (x *CreateBookingResponse) String() string
- type CreateCampsiteRequest
- func (*CreateCampsiteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateCampsiteRequest) GetCampsiteCode() string
- func (x *CreateCampsiteRequest) GetCapacity() int32
- func (x *CreateCampsiteRequest) GetDrinkingWater() bool
- func (x *CreateCampsiteRequest) GetFirePit() bool
- func (x *CreateCampsiteRequest) GetPicnicTable() bool
- func (x *CreateCampsiteRequest) GetRestrooms() bool
- func (*CreateCampsiteRequest) ProtoMessage()
- func (x *CreateCampsiteRequest) ProtoReflect() protoreflect.Message
- func (x *CreateCampsiteRequest) Reset()
- func (x *CreateCampsiteRequest) String() string
- type CreateCampsiteResponse
- func (*CreateCampsiteResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateCampsiteResponse) GetCampsiteId() string
- func (*CreateCampsiteResponse) ProtoMessage()
- func (x *CreateCampsiteResponse) ProtoReflect() protoreflect.Message
- func (x *CreateCampsiteResponse) Reset()
- func (x *CreateCampsiteResponse) String() string
- type GetBookingRequest
- type GetBookingResponse
- func (*GetBookingResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetBookingResponse) GetBooking() *Booking
- func (*GetBookingResponse) ProtoMessage()
- func (x *GetBookingResponse) ProtoReflect() protoreflect.Message
- func (x *GetBookingResponse) Reset()
- func (x *GetBookingResponse) String() string
- type GetCampsitesRequest
- type GetCampsitesResponse
- func (*GetCampsitesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetCampsitesResponse) GetCampsites() []*Campsite
- func (*GetCampsitesResponse) ProtoMessage()
- func (x *GetCampsitesResponse) ProtoReflect() protoreflect.Message
- func (x *GetCampsitesResponse) Reset()
- func (x *GetCampsitesResponse) String() string
- type GetVacantDatesRequest
- func (*GetVacantDatesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetVacantDatesRequest) GetCampsiteId() string
- func (x *GetVacantDatesRequest) GetEndDate() string
- func (x *GetVacantDatesRequest) GetStartDate() string
- func (*GetVacantDatesRequest) ProtoMessage()
- func (x *GetVacantDatesRequest) ProtoReflect() protoreflect.Message
- func (x *GetVacantDatesRequest) Reset()
- func (x *GetVacantDatesRequest) String() string
- type GetVacantDatesResponse
- func (*GetVacantDatesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetVacantDatesResponse) GetVacantDates() []string
- func (*GetVacantDatesResponse) ProtoMessage()
- func (x *GetVacantDatesResponse) ProtoReflect() protoreflect.Message
- func (x *GetVacantDatesResponse) Reset()
- func (x *GetVacantDatesResponse) String() string
- type UnimplementedCampgroundsServiceServer
- func (UnimplementedCampgroundsServiceServer) CancelBooking(context.Context, *CancelBookingRequest) (*CancelBookingResponse, error)
- func (UnimplementedCampgroundsServiceServer) CreateBooking(context.Context, *CreateBookingRequest) (*CreateBookingResponse, error)
- func (UnimplementedCampgroundsServiceServer) CreateCampsite(context.Context, *CreateCampsiteRequest) (*CreateCampsiteResponse, error)
- func (UnimplementedCampgroundsServiceServer) GetBooking(context.Context, *GetBookingRequest) (*GetBookingResponse, error)
- func (UnimplementedCampgroundsServiceServer) GetCampsites(context.Context, *GetCampsitesRequest) (*GetCampsitesResponse, error)
- func (UnimplementedCampgroundsServiceServer) GetVacantDates(context.Context, *GetVacantDatesRequest) (*GetVacantDatesResponse, error)
- func (UnimplementedCampgroundsServiceServer) UpdateBooking(context.Context, *UpdateBookingRequest) (*UpdateBookingResponse, error)
- type UnsafeCampgroundsServiceServer
- type UpdateBookingRequest
- func (*UpdateBookingRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateBookingRequest) GetBooking() *Booking
- func (*UpdateBookingRequest) ProtoMessage()
- func (x *UpdateBookingRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateBookingRequest) Reset()
- func (x *UpdateBookingRequest) String() string
- type UpdateBookingResponse
Constants ¶
const ( CampgroundsService_GetCampsites_FullMethodName = "/campgroundspb.v1.CampgroundsService/GetCampsites" CampgroundsService_CreateCampsite_FullMethodName = "/campgroundspb.v1.CampgroundsService/CreateCampsite" CampgroundsService_GetBooking_FullMethodName = "/campgroundspb.v1.CampgroundsService/GetBooking" CampgroundsService_CreateBooking_FullMethodName = "/campgroundspb.v1.CampgroundsService/CreateBooking" CampgroundsService_UpdateBooking_FullMethodName = "/campgroundspb.v1.CampgroundsService/UpdateBooking" CampgroundsService_CancelBooking_FullMethodName = "/campgroundspb.v1.CampgroundsService/CancelBooking" CampgroundsService_GetVacantDates_FullMethodName = "/campgroundspb.v1.CampgroundsService/GetVacantDates" )
Variables ¶
var CampgroundsService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "campgroundspb.v1.CampgroundsService", HandlerType: (*CampgroundsServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetCampsites", Handler: _CampgroundsService_GetCampsites_Handler, }, { MethodName: "CreateCampsite", Handler: _CampgroundsService_CreateCampsite_Handler, }, { MethodName: "GetBooking", Handler: _CampgroundsService_GetBooking_Handler, }, { MethodName: "CreateBooking", Handler: _CampgroundsService_CreateBooking_Handler, }, { MethodName: "UpdateBooking", Handler: _CampgroundsService_UpdateBooking_Handler, }, { MethodName: "CancelBooking", Handler: _CampgroundsService_CancelBooking_Handler, }, { MethodName: "GetVacantDates", Handler: _CampgroundsService_GetVacantDates_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "campgroundspb/v1/api.proto", }
CampgroundsService_ServiceDesc is the grpc.ServiceDesc for CampgroundsService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_campgroundspb_v1_api_proto protoreflect.FileDescriptor
Functions ¶
func RegisterCampgroundsServiceServer ¶
func RegisterCampgroundsServiceServer(s grpc.ServiceRegistrar, srv CampgroundsServiceServer)
Types ¶
type Booking ¶
type Booking struct { // Unique identifier of booking, must be in UUID format. BookingId string `protobuf:"bytes,1,opt,name=booking_id,json=bookingId,proto3" json:"booking_id,omitempty"` // Identifier of the campsite booked, must be in UUID format. CampsiteId string `protobuf:"bytes,2,opt,name=campsite_id,json=campsiteId,proto3" json:"campsite_id,omitempty"` // Email of person who made booking. Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` // Full name of person who made booking. FullName string `protobuf:"bytes,4,opt,name=full_name,json=fullName,proto3" json:"full_name,omitempty"` // Start date of booking, must be in ISO-8601 format (YYYY-MM-DD). StartDate string `protobuf:"bytes,5,opt,name=start_date,json=startDate,proto3" json:"start_date,omitempty"` // End date of booking, must be in ISO-8601 format (YYYY-MM-DD). EndDate string `protobuf:"bytes,6,opt,name=end_date,json=endDate,proto3" json:"end_date,omitempty"` // Indicates if booking is active. Active bool `protobuf:"varint,8,opt,name=active,proto3" json:"active,omitempty"` // contains filtered or unexported fields }
func (*Booking) Descriptor
deprecated
func (*Booking) GetBookingId ¶
func (*Booking) GetCampsiteId ¶
func (*Booking) GetEndDate ¶
func (*Booking) GetFullName ¶
func (*Booking) GetStartDate ¶
func (*Booking) ProtoMessage ¶
func (*Booking) ProtoMessage()
func (*Booking) ProtoReflect ¶
func (x *Booking) ProtoReflect() protoreflect.Message
type CampgroundsServiceClient ¶
type CampgroundsServiceClient interface { GetCampsites(ctx context.Context, in *GetCampsitesRequest, opts ...grpc.CallOption) (*GetCampsitesResponse, error) CreateCampsite(ctx context.Context, in *CreateCampsiteRequest, opts ...grpc.CallOption) (*CreateCampsiteResponse, error) GetBooking(ctx context.Context, in *GetBookingRequest, opts ...grpc.CallOption) (*GetBookingResponse, error) CreateBooking(ctx context.Context, in *CreateBookingRequest, opts ...grpc.CallOption) (*CreateBookingResponse, error) UpdateBooking(ctx context.Context, in *UpdateBookingRequest, opts ...grpc.CallOption) (*UpdateBookingResponse, error) CancelBooking(ctx context.Context, in *CancelBookingRequest, opts ...grpc.CallOption) (*CancelBookingResponse, error) GetVacantDates(ctx context.Context, in *GetVacantDatesRequest, opts ...grpc.CallOption) (*GetVacantDatesResponse, error) }
CampgroundsServiceClient is the client API for CampgroundsService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewCampgroundsServiceClient ¶
func NewCampgroundsServiceClient(cc grpc.ClientConnInterface) CampgroundsServiceClient
type CampgroundsServiceServer ¶
type CampgroundsServiceServer interface { GetCampsites(context.Context, *GetCampsitesRequest) (*GetCampsitesResponse, error) CreateCampsite(context.Context, *CreateCampsiteRequest) (*CreateCampsiteResponse, error) GetBooking(context.Context, *GetBookingRequest) (*GetBookingResponse, error) CreateBooking(context.Context, *CreateBookingRequest) (*CreateBookingResponse, error) UpdateBooking(context.Context, *UpdateBookingRequest) (*UpdateBookingResponse, error) CancelBooking(context.Context, *CancelBookingRequest) (*CancelBookingResponse, error) GetVacantDates(context.Context, *GetVacantDatesRequest) (*GetVacantDatesResponse, error) // contains filtered or unexported methods }
CampgroundsServiceServer is the server API for CampgroundsService service. All implementations must embed UnimplementedCampgroundsServiceServer for forward compatibility
type Campsite ¶
type Campsite struct { // Unique identifier of campsite, must be in UUID format. CampsiteId string `protobuf:"bytes,1,opt,name=campsite_id,json=campsiteId,proto3" json:"campsite_id,omitempty"` // Unique code of campsite. CampsiteCode string `protobuf:"bytes,2,opt,name=campsite_code,json=campsiteCode,proto3" json:"campsite_code,omitempty"` // Maximum number of people campsite can accommodate. Capacity int32 `protobuf:"varint,3,opt,name=capacity,proto3" json:"capacity,omitempty"` // Indicates if campsite has drinking water. DrinkingWater bool `protobuf:"varint,4,opt,name=drinking_water,json=drinkingWater,proto3" json:"drinking_water,omitempty"` // Indicates if campsite has restrooms. Restrooms bool `protobuf:"varint,5,opt,name=restrooms,proto3" json:"restrooms,omitempty"` // Indicates if campsite has a picnic table. PicnicTable bool `protobuf:"varint,6,opt,name=picnic_table,json=picnicTable,proto3" json:"picnic_table,omitempty"` // Indicates if campsite has a fire pit. FirePit bool `protobuf:"varint,7,opt,name=fire_pit,json=firePit,proto3" json:"fire_pit,omitempty"` // Indicates if campsite is active. Active bool `protobuf:"varint,8,opt,name=active,proto3" json:"active,omitempty"` // contains filtered or unexported fields }
func (*Campsite) Descriptor
deprecated
func (*Campsite) GetCampsiteCode ¶
func (*Campsite) GetCampsiteId ¶
func (*Campsite) GetCapacity ¶
func (*Campsite) GetDrinkingWater ¶
func (*Campsite) GetFirePit ¶
func (*Campsite) GetPicnicTable ¶
func (*Campsite) GetRestrooms ¶
func (*Campsite) ProtoMessage ¶
func (*Campsite) ProtoMessage()
func (*Campsite) ProtoReflect ¶
func (x *Campsite) ProtoReflect() protoreflect.Message
type CancelBookingRequest ¶
type CancelBookingRequest struct { BookingId string `protobuf:"bytes,1,opt,name=booking_id,json=bookingId,proto3" json:"booking_id,omitempty"` // contains filtered or unexported fields }
func (*CancelBookingRequest) Descriptor
deprecated
func (*CancelBookingRequest) Descriptor() ([]byte, []int)
Deprecated: Use CancelBookingRequest.ProtoReflect.Descriptor instead.
func (*CancelBookingRequest) GetBookingId ¶
func (x *CancelBookingRequest) GetBookingId() string
func (*CancelBookingRequest) ProtoMessage ¶
func (*CancelBookingRequest) ProtoMessage()
func (*CancelBookingRequest) ProtoReflect ¶
func (x *CancelBookingRequest) ProtoReflect() protoreflect.Message
func (*CancelBookingRequest) Reset ¶
func (x *CancelBookingRequest) Reset()
func (*CancelBookingRequest) String ¶
func (x *CancelBookingRequest) String() string
type CancelBookingResponse ¶
type CancelBookingResponse struct {
// contains filtered or unexported fields
}
func (*CancelBookingResponse) Descriptor
deprecated
func (*CancelBookingResponse) Descriptor() ([]byte, []int)
Deprecated: Use CancelBookingResponse.ProtoReflect.Descriptor instead.
func (*CancelBookingResponse) ProtoMessage ¶
func (*CancelBookingResponse) ProtoMessage()
func (*CancelBookingResponse) ProtoReflect ¶
func (x *CancelBookingResponse) ProtoReflect() protoreflect.Message
func (*CancelBookingResponse) Reset ¶
func (x *CancelBookingResponse) Reset()
func (*CancelBookingResponse) String ¶
func (x *CancelBookingResponse) String() string
type CreateBookingRequest ¶
type CreateBookingRequest struct { CampsiteId string `protobuf:"bytes,1,opt,name=campsite_id,json=campsiteId,proto3" json:"campsite_id,omitempty"` Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` FullName string `protobuf:"bytes,3,opt,name=full_name,json=fullName,proto3" json:"full_name,omitempty"` StartDate string `protobuf:"bytes,4,opt,name=start_date,json=startDate,proto3" json:"start_date,omitempty"` EndDate string `protobuf:"bytes,5,opt,name=end_date,json=endDate,proto3" json:"end_date,omitempty"` // contains filtered or unexported fields }
func (*CreateBookingRequest) Descriptor
deprecated
func (*CreateBookingRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateBookingRequest.ProtoReflect.Descriptor instead.
func (*CreateBookingRequest) GetCampsiteId ¶
func (x *CreateBookingRequest) GetCampsiteId() string
func (*CreateBookingRequest) GetEmail ¶
func (x *CreateBookingRequest) GetEmail() string
func (*CreateBookingRequest) GetEndDate ¶
func (x *CreateBookingRequest) GetEndDate() string
func (*CreateBookingRequest) GetFullName ¶
func (x *CreateBookingRequest) GetFullName() string
func (*CreateBookingRequest) GetStartDate ¶
func (x *CreateBookingRequest) GetStartDate() string
func (*CreateBookingRequest) ProtoMessage ¶
func (*CreateBookingRequest) ProtoMessage()
func (*CreateBookingRequest) ProtoReflect ¶
func (x *CreateBookingRequest) ProtoReflect() protoreflect.Message
func (*CreateBookingRequest) Reset ¶
func (x *CreateBookingRequest) Reset()
func (*CreateBookingRequest) String ¶
func (x *CreateBookingRequest) String() string
type CreateBookingResponse ¶
type CreateBookingResponse struct { BookingId string `protobuf:"bytes,1,opt,name=booking_id,json=bookingId,proto3" json:"booking_id,omitempty"` // contains filtered or unexported fields }
func (*CreateBookingResponse) Descriptor
deprecated
func (*CreateBookingResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateBookingResponse.ProtoReflect.Descriptor instead.
func (*CreateBookingResponse) GetBookingId ¶
func (x *CreateBookingResponse) GetBookingId() string
func (*CreateBookingResponse) ProtoMessage ¶
func (*CreateBookingResponse) ProtoMessage()
func (*CreateBookingResponse) ProtoReflect ¶
func (x *CreateBookingResponse) ProtoReflect() protoreflect.Message
func (*CreateBookingResponse) Reset ¶
func (x *CreateBookingResponse) Reset()
func (*CreateBookingResponse) String ¶
func (x *CreateBookingResponse) String() string
type CreateCampsiteRequest ¶
type CreateCampsiteRequest struct { CampsiteCode string `protobuf:"bytes,1,opt,name=campsite_code,json=campsiteCode,proto3" json:"campsite_code,omitempty"` Capacity int32 `protobuf:"varint,2,opt,name=capacity,proto3" json:"capacity,omitempty"` DrinkingWater bool `protobuf:"varint,3,opt,name=drinking_water,json=drinkingWater,proto3" json:"drinking_water,omitempty"` Restrooms bool `protobuf:"varint,4,opt,name=restrooms,proto3" json:"restrooms,omitempty"` PicnicTable bool `protobuf:"varint,5,opt,name=picnic_table,json=picnicTable,proto3" json:"picnic_table,omitempty"` FirePit bool `protobuf:"varint,6,opt,name=fire_pit,json=firePit,proto3" json:"fire_pit,omitempty"` // contains filtered or unexported fields }
func (*CreateCampsiteRequest) Descriptor
deprecated
func (*CreateCampsiteRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateCampsiteRequest.ProtoReflect.Descriptor instead.
func (*CreateCampsiteRequest) GetCampsiteCode ¶
func (x *CreateCampsiteRequest) GetCampsiteCode() string
func (*CreateCampsiteRequest) GetCapacity ¶
func (x *CreateCampsiteRequest) GetCapacity() int32
func (*CreateCampsiteRequest) GetDrinkingWater ¶
func (x *CreateCampsiteRequest) GetDrinkingWater() bool
func (*CreateCampsiteRequest) GetFirePit ¶
func (x *CreateCampsiteRequest) GetFirePit() bool
func (*CreateCampsiteRequest) GetPicnicTable ¶
func (x *CreateCampsiteRequest) GetPicnicTable() bool
func (*CreateCampsiteRequest) GetRestrooms ¶
func (x *CreateCampsiteRequest) GetRestrooms() bool
func (*CreateCampsiteRequest) ProtoMessage ¶
func (*CreateCampsiteRequest) ProtoMessage()
func (*CreateCampsiteRequest) ProtoReflect ¶
func (x *CreateCampsiteRequest) ProtoReflect() protoreflect.Message
func (*CreateCampsiteRequest) Reset ¶
func (x *CreateCampsiteRequest) Reset()
func (*CreateCampsiteRequest) String ¶
func (x *CreateCampsiteRequest) String() string
type CreateCampsiteResponse ¶
type CreateCampsiteResponse struct { CampsiteId string `protobuf:"bytes,1,opt,name=campsite_id,json=campsiteId,proto3" json:"campsite_id,omitempty"` // contains filtered or unexported fields }
func (*CreateCampsiteResponse) Descriptor
deprecated
func (*CreateCampsiteResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateCampsiteResponse.ProtoReflect.Descriptor instead.
func (*CreateCampsiteResponse) GetCampsiteId ¶
func (x *CreateCampsiteResponse) GetCampsiteId() string
func (*CreateCampsiteResponse) ProtoMessage ¶
func (*CreateCampsiteResponse) ProtoMessage()
func (*CreateCampsiteResponse) ProtoReflect ¶
func (x *CreateCampsiteResponse) ProtoReflect() protoreflect.Message
func (*CreateCampsiteResponse) Reset ¶
func (x *CreateCampsiteResponse) Reset()
func (*CreateCampsiteResponse) String ¶
func (x *CreateCampsiteResponse) String() string
type GetBookingRequest ¶
type GetBookingRequest struct { BookingId string `protobuf:"bytes,1,opt,name=booking_id,json=bookingId,proto3" json:"booking_id,omitempty"` // contains filtered or unexported fields }
func (*GetBookingRequest) Descriptor
deprecated
func (*GetBookingRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetBookingRequest.ProtoReflect.Descriptor instead.
func (*GetBookingRequest) GetBookingId ¶
func (x *GetBookingRequest) GetBookingId() string
func (*GetBookingRequest) ProtoMessage ¶
func (*GetBookingRequest) ProtoMessage()
func (*GetBookingRequest) ProtoReflect ¶
func (x *GetBookingRequest) ProtoReflect() protoreflect.Message
func (*GetBookingRequest) Reset ¶
func (x *GetBookingRequest) Reset()
func (*GetBookingRequest) String ¶
func (x *GetBookingRequest) String() string
type GetBookingResponse ¶
type GetBookingResponse struct { Booking *Booking `protobuf:"bytes,1,opt,name=booking,proto3" json:"booking,omitempty"` // contains filtered or unexported fields }
func (*GetBookingResponse) Descriptor
deprecated
func (*GetBookingResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetBookingResponse.ProtoReflect.Descriptor instead.
func (*GetBookingResponse) GetBooking ¶
func (x *GetBookingResponse) GetBooking() *Booking
func (*GetBookingResponse) ProtoMessage ¶
func (*GetBookingResponse) ProtoMessage()
func (*GetBookingResponse) ProtoReflect ¶
func (x *GetBookingResponse) ProtoReflect() protoreflect.Message
func (*GetBookingResponse) Reset ¶
func (x *GetBookingResponse) Reset()
func (*GetBookingResponse) String ¶
func (x *GetBookingResponse) String() string
type GetCampsitesRequest ¶
type GetCampsitesRequest struct {
// contains filtered or unexported fields
}
func (*GetCampsitesRequest) Descriptor
deprecated
func (*GetCampsitesRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetCampsitesRequest.ProtoReflect.Descriptor instead.
func (*GetCampsitesRequest) ProtoMessage ¶
func (*GetCampsitesRequest) ProtoMessage()
func (*GetCampsitesRequest) ProtoReflect ¶
func (x *GetCampsitesRequest) ProtoReflect() protoreflect.Message
func (*GetCampsitesRequest) Reset ¶
func (x *GetCampsitesRequest) Reset()
func (*GetCampsitesRequest) String ¶
func (x *GetCampsitesRequest) String() string
type GetCampsitesResponse ¶
type GetCampsitesResponse struct { Campsites []*Campsite `protobuf:"bytes,1,rep,name=campsites,proto3" json:"campsites,omitempty"` // contains filtered or unexported fields }
func (*GetCampsitesResponse) Descriptor
deprecated
func (*GetCampsitesResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetCampsitesResponse.ProtoReflect.Descriptor instead.
func (*GetCampsitesResponse) GetCampsites ¶
func (x *GetCampsitesResponse) GetCampsites() []*Campsite
func (*GetCampsitesResponse) ProtoMessage ¶
func (*GetCampsitesResponse) ProtoMessage()
func (*GetCampsitesResponse) ProtoReflect ¶
func (x *GetCampsitesResponse) ProtoReflect() protoreflect.Message
func (*GetCampsitesResponse) Reset ¶
func (x *GetCampsitesResponse) Reset()
func (*GetCampsitesResponse) String ¶
func (x *GetCampsitesResponse) String() string
type GetVacantDatesRequest ¶
type GetVacantDatesRequest struct { CampsiteId string `protobuf:"bytes,1,opt,name=campsite_id,json=campsiteId,proto3" json:"campsite_id,omitempty"` StartDate string `protobuf:"bytes,2,opt,name=start_date,json=startDate,proto3" json:"start_date,omitempty"` EndDate string `protobuf:"bytes,3,opt,name=end_date,json=endDate,proto3" json:"end_date,omitempty"` // contains filtered or unexported fields }
func (*GetVacantDatesRequest) Descriptor
deprecated
func (*GetVacantDatesRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetVacantDatesRequest.ProtoReflect.Descriptor instead.
func (*GetVacantDatesRequest) GetCampsiteId ¶
func (x *GetVacantDatesRequest) GetCampsiteId() string
func (*GetVacantDatesRequest) GetEndDate ¶
func (x *GetVacantDatesRequest) GetEndDate() string
func (*GetVacantDatesRequest) GetStartDate ¶
func (x *GetVacantDatesRequest) GetStartDate() string
func (*GetVacantDatesRequest) ProtoMessage ¶
func (*GetVacantDatesRequest) ProtoMessage()
func (*GetVacantDatesRequest) ProtoReflect ¶
func (x *GetVacantDatesRequest) ProtoReflect() protoreflect.Message
func (*GetVacantDatesRequest) Reset ¶
func (x *GetVacantDatesRequest) Reset()
func (*GetVacantDatesRequest) String ¶
func (x *GetVacantDatesRequest) String() string
type GetVacantDatesResponse ¶
type GetVacantDatesResponse struct { VacantDates []string `protobuf:"bytes,1,rep,name=vacant_dates,json=vacantDates,proto3" json:"vacant_dates,omitempty"` // contains filtered or unexported fields }
func (*GetVacantDatesResponse) Descriptor
deprecated
func (*GetVacantDatesResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetVacantDatesResponse.ProtoReflect.Descriptor instead.
func (*GetVacantDatesResponse) GetVacantDates ¶
func (x *GetVacantDatesResponse) GetVacantDates() []string
func (*GetVacantDatesResponse) ProtoMessage ¶
func (*GetVacantDatesResponse) ProtoMessage()
func (*GetVacantDatesResponse) ProtoReflect ¶
func (x *GetVacantDatesResponse) ProtoReflect() protoreflect.Message
func (*GetVacantDatesResponse) Reset ¶
func (x *GetVacantDatesResponse) Reset()
func (*GetVacantDatesResponse) String ¶
func (x *GetVacantDatesResponse) String() string
type UnimplementedCampgroundsServiceServer ¶
type UnimplementedCampgroundsServiceServer struct { }
UnimplementedCampgroundsServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedCampgroundsServiceServer) CancelBooking ¶
func (UnimplementedCampgroundsServiceServer) CancelBooking(context.Context, *CancelBookingRequest) (*CancelBookingResponse, error)
func (UnimplementedCampgroundsServiceServer) CreateBooking ¶
func (UnimplementedCampgroundsServiceServer) CreateBooking(context.Context, *CreateBookingRequest) (*CreateBookingResponse, error)
func (UnimplementedCampgroundsServiceServer) CreateCampsite ¶
func (UnimplementedCampgroundsServiceServer) CreateCampsite(context.Context, *CreateCampsiteRequest) (*CreateCampsiteResponse, error)
func (UnimplementedCampgroundsServiceServer) GetBooking ¶
func (UnimplementedCampgroundsServiceServer) GetBooking(context.Context, *GetBookingRequest) (*GetBookingResponse, error)
func (UnimplementedCampgroundsServiceServer) GetCampsites ¶
func (UnimplementedCampgroundsServiceServer) GetCampsites(context.Context, *GetCampsitesRequest) (*GetCampsitesResponse, error)
func (UnimplementedCampgroundsServiceServer) GetVacantDates ¶
func (UnimplementedCampgroundsServiceServer) GetVacantDates(context.Context, *GetVacantDatesRequest) (*GetVacantDatesResponse, error)
func (UnimplementedCampgroundsServiceServer) UpdateBooking ¶
func (UnimplementedCampgroundsServiceServer) UpdateBooking(context.Context, *UpdateBookingRequest) (*UpdateBookingResponse, error)
type UnsafeCampgroundsServiceServer ¶
type UnsafeCampgroundsServiceServer interface {
// contains filtered or unexported methods
}
UnsafeCampgroundsServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CampgroundsServiceServer will result in compilation errors.
type UpdateBookingRequest ¶
type UpdateBookingRequest struct { Booking *Booking `protobuf:"bytes,1,opt,name=booking,proto3" json:"booking,omitempty"` // contains filtered or unexported fields }
func (*UpdateBookingRequest) Descriptor
deprecated
func (*UpdateBookingRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateBookingRequest.ProtoReflect.Descriptor instead.
func (*UpdateBookingRequest) GetBooking ¶
func (x *UpdateBookingRequest) GetBooking() *Booking
func (*UpdateBookingRequest) ProtoMessage ¶
func (*UpdateBookingRequest) ProtoMessage()
func (*UpdateBookingRequest) ProtoReflect ¶
func (x *UpdateBookingRequest) ProtoReflect() protoreflect.Message
func (*UpdateBookingRequest) Reset ¶
func (x *UpdateBookingRequest) Reset()
func (*UpdateBookingRequest) String ¶
func (x *UpdateBookingRequest) String() string
type UpdateBookingResponse ¶
type UpdateBookingResponse struct {
// contains filtered or unexported fields
}
func (*UpdateBookingResponse) Descriptor
deprecated
func (*UpdateBookingResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateBookingResponse.ProtoReflect.Descriptor instead.
func (*UpdateBookingResponse) ProtoMessage ¶
func (*UpdateBookingResponse) ProtoMessage()
func (*UpdateBookingResponse) ProtoReflect ¶
func (x *UpdateBookingResponse) ProtoReflect() protoreflect.Message
func (*UpdateBookingResponse) Reset ¶
func (x *UpdateBookingResponse) Reset()
func (*UpdateBookingResponse) String ¶
func (x *UpdateBookingResponse) String() string