Documentation ¶
Overview ¶
Package business is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterBusinessServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterBusinessServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client BusinessServiceClient) error
- func RegisterBusinessServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterBusinessServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server BusinessServiceServer) error
- func RegisterBusinessServiceServer(s *grpc.Server, srv BusinessServiceServer)
- type BoolResponse
- func (*BoolResponse) Descriptor() ([]byte, []int)
- func (m *BoolResponse) GetIsSuccess() bool
- func (m *BoolResponse) Marshal() (dAtA []byte, err error)
- func (m *BoolResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *BoolResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*BoolResponse) ProtoMessage()
- func (m *BoolResponse) Reset()
- func (m *BoolResponse) Size() (n int)
- func (m *BoolResponse) String() string
- func (m *BoolResponse) Unmarshal(dAtA []byte) error
- func (this *BoolResponse) Validate() error
- func (m *BoolResponse) XXX_DiscardUnknown()
- func (m *BoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BoolResponse) XXX_Merge(src proto.Message)
- func (*BoolResponse) XXX_MessageName() string
- func (m *BoolResponse) XXX_Size() int
- func (m *BoolResponse) XXX_Unmarshal(b []byte) error
- type BusinessDetailedDTO
- func (*BusinessDetailedDTO) Descriptor() ([]byte, []int)
- func (m *BusinessDetailedDTO) GetAdminUserID() string
- func (m *BusinessDetailedDTO) GetBannerImageURL() string
- func (m *BusinessDetailedDTO) GetCloseSchedule() []*CloseScheduleDTO
- func (m *BusinessDetailedDTO) GetDeliveryFee() float32
- func (m *BusinessDetailedDTO) GetDescription() string
- func (m *BusinessDetailedDTO) GetID() string
- func (m *BusinessDetailedDTO) GetIsActive() bool
- func (m *BusinessDetailedDTO) GetIsFixedDeliveryFee() bool
- func (m *BusinessDetailedDTO) GetLogoURL() string
- func (m *BusinessDetailedDTO) GetName() string
- func (m *BusinessDetailedDTO) GetOpenSchedule() []*OpenScheduleDTO
- func (m *BusinessDetailedDTO) GetReferralID() uint64
- func (m *BusinessDetailedDTO) Marshal() (dAtA []byte, err error)
- func (m *BusinessDetailedDTO) MarshalTo(dAtA []byte) (int, error)
- func (m *BusinessDetailedDTO) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*BusinessDetailedDTO) ProtoMessage()
- func (m *BusinessDetailedDTO) Reset()
- func (m *BusinessDetailedDTO) Size() (n int)
- func (m *BusinessDetailedDTO) String() string
- func (m *BusinessDetailedDTO) Unmarshal(dAtA []byte) error
- func (this *BusinessDetailedDTO) Validate() error
- func (m *BusinessDetailedDTO) XXX_DiscardUnknown()
- func (m *BusinessDetailedDTO) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BusinessDetailedDTO) XXX_Merge(src proto.Message)
- func (*BusinessDetailedDTO) XXX_MessageName() string
- func (m *BusinessDetailedDTO) XXX_Size() int
- func (m *BusinessDetailedDTO) XXX_Unmarshal(b []byte) error
- type BusinessServiceClient
- type BusinessServiceServer
- type BusinessSimpleDTO
- func (*BusinessSimpleDTO) Descriptor() ([]byte, []int)
- func (m *BusinessSimpleDTO) GetBannerImageURL() string
- func (m *BusinessSimpleDTO) GetCloseSchedule() []*CloseScheduleDTO
- func (m *BusinessSimpleDTO) GetDeliveryFee() float32
- func (m *BusinessSimpleDTO) GetDescription() string
- func (m *BusinessSimpleDTO) GetID() string
- func (m *BusinessSimpleDTO) GetIsFixedDeliveryFee() bool
- func (m *BusinessSimpleDTO) GetLogoURL() string
- func (m *BusinessSimpleDTO) GetName() string
- func (m *BusinessSimpleDTO) GetOpenSchedule() []*OpenScheduleDTO
- func (m *BusinessSimpleDTO) Marshal() (dAtA []byte, err error)
- func (m *BusinessSimpleDTO) MarshalTo(dAtA []byte) (int, error)
- func (m *BusinessSimpleDTO) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*BusinessSimpleDTO) ProtoMessage()
- func (m *BusinessSimpleDTO) Reset()
- func (m *BusinessSimpleDTO) Size() (n int)
- func (m *BusinessSimpleDTO) String() string
- func (m *BusinessSimpleDTO) Unmarshal(dAtA []byte) error
- func (this *BusinessSimpleDTO) Validate() error
- func (m *BusinessSimpleDTO) XXX_DiscardUnknown()
- func (m *BusinessSimpleDTO) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BusinessSimpleDTO) XXX_Merge(src proto.Message)
- func (*BusinessSimpleDTO) XXX_MessageName() string
- func (m *BusinessSimpleDTO) XXX_Size() int
- func (m *BusinessSimpleDTO) XXX_Unmarshal(b []byte) error
- type CloseScheduleDTO
- func (*CloseScheduleDTO) Descriptor() ([]byte, []int)
- func (m *CloseScheduleDTO) GetDate() *types.Timestamp
- func (m *CloseScheduleDTO) GetEnd() *types.Timestamp
- func (m *CloseScheduleDTO) GetIsActive() bool
- func (m *CloseScheduleDTO) GetIsAllDay() bool
- func (m *CloseScheduleDTO) GetStart() *types.Timestamp
- func (m *CloseScheduleDTO) Marshal() (dAtA []byte, err error)
- func (m *CloseScheduleDTO) MarshalTo(dAtA []byte) (int, error)
- func (m *CloseScheduleDTO) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CloseScheduleDTO) ProtoMessage()
- func (m *CloseScheduleDTO) Reset()
- func (m *CloseScheduleDTO) Size() (n int)
- func (m *CloseScheduleDTO) String() string
- func (m *CloseScheduleDTO) Unmarshal(dAtA []byte) error
- func (this *CloseScheduleDTO) Validate() error
- func (m *CloseScheduleDTO) XXX_DiscardUnknown()
- func (m *CloseScheduleDTO) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CloseScheduleDTO) XXX_Merge(src proto.Message)
- func (*CloseScheduleDTO) XXX_MessageName() string
- func (m *CloseScheduleDTO) XXX_Size() int
- func (m *CloseScheduleDTO) XXX_Unmarshal(b []byte) error
- type CreateBusinessRequest
- func (*CreateBusinessRequest) Descriptor() ([]byte, []int)
- func (m *CreateBusinessRequest) GetAdminUserID() string
- func (m *CreateBusinessRequest) GetBannerImageURL() string
- func (m *CreateBusinessRequest) GetCloseSchedule() []*CloseScheduleDTO
- func (m *CreateBusinessRequest) GetDeliveryFee() float32
- func (m *CreateBusinessRequest) GetDescription() string
- func (m *CreateBusinessRequest) GetEntityID() string
- func (m *CreateBusinessRequest) GetIsActive() bool
- func (m *CreateBusinessRequest) GetIsFixedDeliveryFee() bool
- func (m *CreateBusinessRequest) GetLogoURL() string
- func (m *CreateBusinessRequest) GetName() string
- func (m *CreateBusinessRequest) GetOpenSchedule() []*OpenScheduleDTO
- func (m *CreateBusinessRequest) Marshal() (dAtA []byte, err error)
- func (m *CreateBusinessRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *CreateBusinessRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CreateBusinessRequest) ProtoMessage()
- func (m *CreateBusinessRequest) Reset()
- func (m *CreateBusinessRequest) Size() (n int)
- func (m *CreateBusinessRequest) String() string
- func (m *CreateBusinessRequest) Unmarshal(dAtA []byte) error
- func (this *CreateBusinessRequest) Validate() error
- func (m *CreateBusinessRequest) XXX_DiscardUnknown()
- func (m *CreateBusinessRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateBusinessRequest) XXX_Merge(src proto.Message)
- func (*CreateBusinessRequest) XXX_MessageName() string
- func (m *CreateBusinessRequest) XXX_Size() int
- func (m *CreateBusinessRequest) XXX_Unmarshal(b []byte) error
- type DeleteBusinessRequest
- func (*DeleteBusinessRequest) Descriptor() ([]byte, []int)
- func (m *DeleteBusinessRequest) GetID() string
- func (m *DeleteBusinessRequest) Marshal() (dAtA []byte, err error)
- func (m *DeleteBusinessRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *DeleteBusinessRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DeleteBusinessRequest) ProtoMessage()
- func (m *DeleteBusinessRequest) Reset()
- func (m *DeleteBusinessRequest) Size() (n int)
- func (m *DeleteBusinessRequest) String() string
- func (m *DeleteBusinessRequest) Unmarshal(dAtA []byte) error
- func (this *DeleteBusinessRequest) Validate() error
- func (m *DeleteBusinessRequest) XXX_DiscardUnknown()
- func (m *DeleteBusinessRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeleteBusinessRequest) XXX_Merge(src proto.Message)
- func (*DeleteBusinessRequest) XXX_MessageName() string
- func (m *DeleteBusinessRequest) XXX_Size() int
- func (m *DeleteBusinessRequest) XXX_Unmarshal(b []byte) error
- type Empty
- func (*Empty) Descriptor() ([]byte, []int)
- func (m *Empty) Marshal() (dAtA []byte, err error)
- func (m *Empty) MarshalTo(dAtA []byte) (int, error)
- func (m *Empty) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Empty) ProtoMessage()
- func (m *Empty) Reset()
- func (m *Empty) Size() (n int)
- func (m *Empty) String() string
- func (m *Empty) Unmarshal(dAtA []byte) error
- func (this *Empty) Validate() error
- func (m *Empty) XXX_DiscardUnknown()
- func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Empty) XXX_Merge(src proto.Message)
- func (*Empty) XXX_MessageName() string
- func (m *Empty) XXX_Size() int
- func (m *Empty) XXX_Unmarshal(b []byte) error
- type GetBusinessesByEntityRequest
- func (*GetBusinessesByEntityRequest) Descriptor() ([]byte, []int)
- func (m *GetBusinessesByEntityRequest) GetEntityID() string
- func (m *GetBusinessesByEntityRequest) Marshal() (dAtA []byte, err error)
- func (m *GetBusinessesByEntityRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *GetBusinessesByEntityRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetBusinessesByEntityRequest) ProtoMessage()
- func (m *GetBusinessesByEntityRequest) Reset()
- func (m *GetBusinessesByEntityRequest) Size() (n int)
- func (m *GetBusinessesByEntityRequest) String() string
- func (m *GetBusinessesByEntityRequest) Unmarshal(dAtA []byte) error
- func (this *GetBusinessesByEntityRequest) Validate() error
- func (m *GetBusinessesByEntityRequest) XXX_DiscardUnknown()
- func (m *GetBusinessesByEntityRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetBusinessesByEntityRequest) XXX_Merge(src proto.Message)
- func (*GetBusinessesByEntityRequest) XXX_MessageName() string
- func (m *GetBusinessesByEntityRequest) XXX_Size() int
- func (m *GetBusinessesByEntityRequest) XXX_Unmarshal(b []byte) error
- type GetBusinessesRequest
- func (*GetBusinessesRequest) Descriptor() ([]byte, []int)
- func (m *GetBusinessesRequest) GetID() []string
- func (m *GetBusinessesRequest) Marshal() (dAtA []byte, err error)
- func (m *GetBusinessesRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *GetBusinessesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetBusinessesRequest) ProtoMessage()
- func (m *GetBusinessesRequest) Reset()
- func (m *GetBusinessesRequest) Size() (n int)
- func (m *GetBusinessesRequest) String() string
- func (m *GetBusinessesRequest) Unmarshal(dAtA []byte) error
- func (this *GetBusinessesRequest) Validate() error
- func (m *GetBusinessesRequest) XXX_DiscardUnknown()
- func (m *GetBusinessesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetBusinessesRequest) XXX_Merge(src proto.Message)
- func (*GetBusinessesRequest) XXX_MessageName() string
- func (m *GetBusinessesRequest) XXX_Size() int
- func (m *GetBusinessesRequest) XXX_Unmarshal(b []byte) error
- type GetDetailedBusinessRequest
- func (*GetDetailedBusinessRequest) Descriptor() ([]byte, []int)
- func (m *GetDetailedBusinessRequest) GetID() string
- func (m *GetDetailedBusinessRequest) Marshal() (dAtA []byte, err error)
- func (m *GetDetailedBusinessRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *GetDetailedBusinessRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetDetailedBusinessRequest) ProtoMessage()
- func (m *GetDetailedBusinessRequest) Reset()
- func (m *GetDetailedBusinessRequest) Size() (n int)
- func (m *GetDetailedBusinessRequest) String() string
- func (m *GetDetailedBusinessRequest) Unmarshal(dAtA []byte) error
- func (this *GetDetailedBusinessRequest) Validate() error
- func (m *GetDetailedBusinessRequest) XXX_DiscardUnknown()
- func (m *GetDetailedBusinessRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetDetailedBusinessRequest) XXX_Merge(src proto.Message)
- func (*GetDetailedBusinessRequest) XXX_MessageName() string
- func (m *GetDetailedBusinessRequest) XXX_Size() int
- func (m *GetDetailedBusinessRequest) XXX_Unmarshal(b []byte) error
- type OpenScheduleDTO
- func (*OpenScheduleDTO) Descriptor() ([]byte, []int)
- func (m *OpenScheduleDTO) GetDay() ScheduleDay
- func (m *OpenScheduleDTO) GetEnd() *types.Timestamp
- func (m *OpenScheduleDTO) GetIsAllDay() bool
- func (m *OpenScheduleDTO) GetStart() *types.Timestamp
- func (m *OpenScheduleDTO) Marshal() (dAtA []byte, err error)
- func (m *OpenScheduleDTO) MarshalTo(dAtA []byte) (int, error)
- func (m *OpenScheduleDTO) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*OpenScheduleDTO) ProtoMessage()
- func (m *OpenScheduleDTO) Reset()
- func (m *OpenScheduleDTO) Size() (n int)
- func (m *OpenScheduleDTO) String() string
- func (m *OpenScheduleDTO) Unmarshal(dAtA []byte) error
- func (this *OpenScheduleDTO) Validate() error
- func (m *OpenScheduleDTO) XXX_DiscardUnknown()
- func (m *OpenScheduleDTO) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *OpenScheduleDTO) XXX_Merge(src proto.Message)
- func (*OpenScheduleDTO) XXX_MessageName() string
- func (m *OpenScheduleDTO) XXX_Size() int
- func (m *OpenScheduleDTO) XXX_Unmarshal(b []byte) error
- type RepeatedBusinessSimpleDTO
- func (*RepeatedBusinessSimpleDTO) Descriptor() ([]byte, []int)
- func (m *RepeatedBusinessSimpleDTO) GetResults() []*BusinessSimpleDTO
- func (m *RepeatedBusinessSimpleDTO) Marshal() (dAtA []byte, err error)
- func (m *RepeatedBusinessSimpleDTO) MarshalTo(dAtA []byte) (int, error)
- func (m *RepeatedBusinessSimpleDTO) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*RepeatedBusinessSimpleDTO) ProtoMessage()
- func (m *RepeatedBusinessSimpleDTO) Reset()
- func (m *RepeatedBusinessSimpleDTO) Size() (n int)
- func (m *RepeatedBusinessSimpleDTO) String() string
- func (m *RepeatedBusinessSimpleDTO) Unmarshal(dAtA []byte) error
- func (this *RepeatedBusinessSimpleDTO) Validate() error
- func (m *RepeatedBusinessSimpleDTO) XXX_DiscardUnknown()
- func (m *RepeatedBusinessSimpleDTO) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RepeatedBusinessSimpleDTO) XXX_Merge(src proto.Message)
- func (*RepeatedBusinessSimpleDTO) XXX_MessageName() string
- func (m *RepeatedBusinessSimpleDTO) XXX_Size() int
- func (m *RepeatedBusinessSimpleDTO) XXX_Unmarshal(b []byte) error
- type ScheduleDay
- type UnimplementedBusinessServiceServer
- func (*UnimplementedBusinessServiceServer) Create(ctx context.Context, req *CreateBusinessRequest) (*BusinessDetailedDTO, error)
- func (*UnimplementedBusinessServiceServer) Delete(ctx context.Context, req *DeleteBusinessRequest) (*BoolResponse, error)
- func (*UnimplementedBusinessServiceServer) GetBusinesses(ctx context.Context, req *GetBusinessesRequest) (*RepeatedBusinessSimpleDTO, error)
- func (*UnimplementedBusinessServiceServer) GetBusinessesByEntity(ctx context.Context, req *GetBusinessesByEntityRequest) (*RepeatedBusinessSimpleDTO, error)
- func (*UnimplementedBusinessServiceServer) GetCurrentBusiesses(ctx context.Context, req *Empty) (*RepeatedBusinessSimpleDTO, error)
- func (*UnimplementedBusinessServiceServer) GetDetailedBusiness(ctx context.Context, req *GetDetailedBusinessRequest) (*BusinessDetailedDTO, error)
- func (*UnimplementedBusinessServiceServer) Update(ctx context.Context, req *UpdateBusinessRequest) (*BusinessDetailedDTO, error)
- type UpdateBusinessRequest
- func (*UpdateBusinessRequest) Descriptor() ([]byte, []int)
- func (m *UpdateBusinessRequest) GetAdminUserID() string
- func (m *UpdateBusinessRequest) GetBannerImageURL() string
- func (m *UpdateBusinessRequest) GetCloseSchedule() []*CloseScheduleDTO
- func (m *UpdateBusinessRequest) GetDeliveryFee() float32
- func (m *UpdateBusinessRequest) GetDescription() string
- func (m *UpdateBusinessRequest) GetID() string
- func (m *UpdateBusinessRequest) GetIsActive() bool
- func (m *UpdateBusinessRequest) GetIsFixedDeliveryFee() bool
- func (m *UpdateBusinessRequest) GetLogoURL() string
- func (m *UpdateBusinessRequest) GetName() string
- func (m *UpdateBusinessRequest) GetOpenSchedule() []*OpenScheduleDTO
- func (m *UpdateBusinessRequest) Marshal() (dAtA []byte, err error)
- func (m *UpdateBusinessRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *UpdateBusinessRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*UpdateBusinessRequest) ProtoMessage()
- func (m *UpdateBusinessRequest) Reset()
- func (m *UpdateBusinessRequest) Size() (n int)
- func (m *UpdateBusinessRequest) String() string
- func (m *UpdateBusinessRequest) Unmarshal(dAtA []byte) error
- func (this *UpdateBusinessRequest) Validate() error
- func (m *UpdateBusinessRequest) XXX_DiscardUnknown()
- func (m *UpdateBusinessRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpdateBusinessRequest) XXX_Merge(src proto.Message)
- func (*UpdateBusinessRequest) XXX_MessageName() string
- func (m *UpdateBusinessRequest) XXX_Size() int
- func (m *UpdateBusinessRequest) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidLengthBusiness = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowBusiness = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupBusiness = fmt.Errorf("proto: unexpected end of group") )
var ScheduleDay_name = map[int32]string{
0: "Monday",
1: "Tuesday",
2: "Wednesday",
3: "Thursday",
4: "Friday",
5: "Saturday",
6: "Sunday",
}
var ScheduleDay_value = map[string]int32{
"Monday": 0,
"Tuesday": 1,
"Wednesday": 2,
"Thursday": 3,
"Friday": 4,
"Saturday": 5,
"Sunday": 6,
}
Functions ¶
func RegisterBusinessServiceHandler ¶
func RegisterBusinessServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterBusinessServiceHandler registers the http handlers for service BusinessService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterBusinessServiceHandlerClient ¶
func RegisterBusinessServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client BusinessServiceClient) error
RegisterBusinessServiceHandlerClient registers the http handlers for service BusinessService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "BusinessServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "BusinessServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "BusinessServiceClient" to call the correct interceptors.
func RegisterBusinessServiceHandlerFromEndpoint ¶
func RegisterBusinessServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterBusinessServiceHandlerFromEndpoint is same as RegisterBusinessServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterBusinessServiceHandlerServer ¶
func RegisterBusinessServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server BusinessServiceServer) error
RegisterBusinessServiceHandlerServer registers the http handlers for service BusinessService to "mux". UnaryRPC :call BusinessServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.
func RegisterBusinessServiceServer ¶
func RegisterBusinessServiceServer(s *grpc.Server, srv BusinessServiceServer)
Types ¶
type BoolResponse ¶
type BoolResponse struct { IsSuccess bool `protobuf:"varint,1,opt,name=IsSuccess,proto3" json:"IsSuccess,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*BoolResponse) Descriptor ¶
func (*BoolResponse) Descriptor() ([]byte, []int)
func (*BoolResponse) GetIsSuccess ¶
func (m *BoolResponse) GetIsSuccess() bool
func (*BoolResponse) Marshal ¶
func (m *BoolResponse) Marshal() (dAtA []byte, err error)
func (*BoolResponse) MarshalToSizedBuffer ¶
func (m *BoolResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*BoolResponse) ProtoMessage ¶
func (*BoolResponse) ProtoMessage()
func (*BoolResponse) Reset ¶
func (m *BoolResponse) Reset()
func (*BoolResponse) Size ¶
func (m *BoolResponse) Size() (n int)
func (*BoolResponse) String ¶
func (m *BoolResponse) String() string
func (*BoolResponse) Unmarshal ¶
func (m *BoolResponse) Unmarshal(dAtA []byte) error
func (*BoolResponse) Validate ¶
func (this *BoolResponse) Validate() error
func (*BoolResponse) XXX_DiscardUnknown ¶
func (m *BoolResponse) XXX_DiscardUnknown()
func (*BoolResponse) XXX_Marshal ¶
func (m *BoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BoolResponse) XXX_Merge ¶
func (m *BoolResponse) XXX_Merge(src proto.Message)
func (*BoolResponse) XXX_MessageName ¶
func (*BoolResponse) XXX_MessageName() string
func (*BoolResponse) XXX_Size ¶
func (m *BoolResponse) XXX_Size() int
func (*BoolResponse) XXX_Unmarshal ¶
func (m *BoolResponse) XXX_Unmarshal(b []byte) error
type BusinessDetailedDTO ¶
type BusinessDetailedDTO struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` AdminUserID string `protobuf:"bytes,2,opt,name=AdminUserID,proto3" json:"AdminUserID,omitempty"` Name string `protobuf:"bytes,3,opt,name=Name,proto3" json:"Name,omitempty"` Description string `protobuf:"bytes,4,opt,name=Description,proto3" json:"Description,omitempty"` BannerImageURL string `protobuf:"bytes,5,opt,name=BannerImageURL,proto3" json:"BannerImageURL,omitempty"` LogoURL string `protobuf:"bytes,6,opt,name=LogoURL,proto3" json:"LogoURL,omitempty"` DeliveryFee float32 `protobuf:"fixed32,7,opt,name=DeliveryFee,proto3" json:"DeliveryFee,omitempty"` ReferralID uint64 `protobuf:"varint,8,opt,name=ReferralID,proto3" json:"ReferralID,omitempty"` OpenSchedule []*OpenScheduleDTO `protobuf:"bytes,21,rep,name=OpenSchedule,proto3" json:"OpenSchedule,omitempty"` CloseSchedule []*CloseScheduleDTO `protobuf:"bytes,22,rep,name=CloseSchedule,proto3" json:"CloseSchedule,omitempty"` IsActive bool `protobuf:"varint,52,opt,name=IsActive,proto3" json:"IsActive,omitempty"` IsFixedDeliveryFee bool `protobuf:"varint,53,opt,name=IsFixedDeliveryFee,proto3" json:"IsFixedDeliveryFee,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*BusinessDetailedDTO) Descriptor ¶
func (*BusinessDetailedDTO) Descriptor() ([]byte, []int)
func (*BusinessDetailedDTO) GetAdminUserID ¶
func (m *BusinessDetailedDTO) GetAdminUserID() string
func (*BusinessDetailedDTO) GetBannerImageURL ¶
func (m *BusinessDetailedDTO) GetBannerImageURL() string
func (*BusinessDetailedDTO) GetCloseSchedule ¶
func (m *BusinessDetailedDTO) GetCloseSchedule() []*CloseScheduleDTO
func (*BusinessDetailedDTO) GetDeliveryFee ¶
func (m *BusinessDetailedDTO) GetDeliveryFee() float32
func (*BusinessDetailedDTO) GetDescription ¶
func (m *BusinessDetailedDTO) GetDescription() string
func (*BusinessDetailedDTO) GetID ¶
func (m *BusinessDetailedDTO) GetID() string
func (*BusinessDetailedDTO) GetIsActive ¶
func (m *BusinessDetailedDTO) GetIsActive() bool
func (*BusinessDetailedDTO) GetIsFixedDeliveryFee ¶
func (m *BusinessDetailedDTO) GetIsFixedDeliveryFee() bool
func (*BusinessDetailedDTO) GetLogoURL ¶
func (m *BusinessDetailedDTO) GetLogoURL() string
func (*BusinessDetailedDTO) GetName ¶
func (m *BusinessDetailedDTO) GetName() string
func (*BusinessDetailedDTO) GetOpenSchedule ¶
func (m *BusinessDetailedDTO) GetOpenSchedule() []*OpenScheduleDTO
func (*BusinessDetailedDTO) GetReferralID ¶
func (m *BusinessDetailedDTO) GetReferralID() uint64
func (*BusinessDetailedDTO) Marshal ¶
func (m *BusinessDetailedDTO) Marshal() (dAtA []byte, err error)
func (*BusinessDetailedDTO) MarshalTo ¶
func (m *BusinessDetailedDTO) MarshalTo(dAtA []byte) (int, error)
func (*BusinessDetailedDTO) MarshalToSizedBuffer ¶
func (m *BusinessDetailedDTO) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*BusinessDetailedDTO) ProtoMessage ¶
func (*BusinessDetailedDTO) ProtoMessage()
func (*BusinessDetailedDTO) Reset ¶
func (m *BusinessDetailedDTO) Reset()
func (*BusinessDetailedDTO) Size ¶
func (m *BusinessDetailedDTO) Size() (n int)
func (*BusinessDetailedDTO) String ¶
func (m *BusinessDetailedDTO) String() string
func (*BusinessDetailedDTO) Unmarshal ¶
func (m *BusinessDetailedDTO) Unmarshal(dAtA []byte) error
func (*BusinessDetailedDTO) Validate ¶
func (this *BusinessDetailedDTO) Validate() error
func (*BusinessDetailedDTO) XXX_DiscardUnknown ¶
func (m *BusinessDetailedDTO) XXX_DiscardUnknown()
func (*BusinessDetailedDTO) XXX_Marshal ¶
func (m *BusinessDetailedDTO) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BusinessDetailedDTO) XXX_Merge ¶
func (m *BusinessDetailedDTO) XXX_Merge(src proto.Message)
func (*BusinessDetailedDTO) XXX_MessageName ¶
func (*BusinessDetailedDTO) XXX_MessageName() string
func (*BusinessDetailedDTO) XXX_Size ¶
func (m *BusinessDetailedDTO) XXX_Size() int
func (*BusinessDetailedDTO) XXX_Unmarshal ¶
func (m *BusinessDetailedDTO) XXX_Unmarshal(b []byte) error
type BusinessServiceClient ¶
type BusinessServiceClient interface { Create(ctx context.Context, in *CreateBusinessRequest, opts ...grpc.CallOption) (*BusinessDetailedDTO, error) GetDetailedBusiness(ctx context.Context, in *GetDetailedBusinessRequest, opts ...grpc.CallOption) (*BusinessDetailedDTO, error) GetCurrentBusiesses(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*RepeatedBusinessSimpleDTO, error) GetBusinesses(ctx context.Context, in *GetBusinessesRequest, opts ...grpc.CallOption) (*RepeatedBusinessSimpleDTO, error) GetBusinessesByEntity(ctx context.Context, in *GetBusinessesByEntityRequest, opts ...grpc.CallOption) (*RepeatedBusinessSimpleDTO, error) Update(ctx context.Context, in *UpdateBusinessRequest, opts ...grpc.CallOption) (*BusinessDetailedDTO, error) Delete(ctx context.Context, in *DeleteBusinessRequest, opts ...grpc.CallOption) (*BoolResponse, error) }
BusinessServiceClient is the client API for BusinessService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewBusinessServiceClient ¶
func NewBusinessServiceClient(cc *grpc.ClientConn) BusinessServiceClient
type BusinessServiceServer ¶
type BusinessServiceServer interface { Create(context.Context, *CreateBusinessRequest) (*BusinessDetailedDTO, error) GetDetailedBusiness(context.Context, *GetDetailedBusinessRequest) (*BusinessDetailedDTO, error) GetCurrentBusiesses(context.Context, *Empty) (*RepeatedBusinessSimpleDTO, error) GetBusinesses(context.Context, *GetBusinessesRequest) (*RepeatedBusinessSimpleDTO, error) GetBusinessesByEntity(context.Context, *GetBusinessesByEntityRequest) (*RepeatedBusinessSimpleDTO, error) Update(context.Context, *UpdateBusinessRequest) (*BusinessDetailedDTO, error) Delete(context.Context, *DeleteBusinessRequest) (*BoolResponse, error) }
BusinessServiceServer is the server API for BusinessService service.
type BusinessSimpleDTO ¶
type BusinessSimpleDTO struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` Name string `protobuf:"bytes,3,opt,name=Name,proto3" json:"Name,omitempty"` Description string `protobuf:"bytes,4,opt,name=Description,proto3" json:"Description,omitempty"` BannerImageURL string `protobuf:"bytes,5,opt,name=BannerImageURL,proto3" json:"BannerImageURL,omitempty"` LogoURL string `protobuf:"bytes,6,opt,name=LogoURL,proto3" json:"LogoURL,omitempty"` DeliveryFee float32 `protobuf:"fixed32,7,opt,name=DeliveryFee,proto3" json:"DeliveryFee,omitempty"` OpenSchedule []*OpenScheduleDTO `protobuf:"bytes,21,rep,name=OpenSchedule,proto3" json:"OpenSchedule,omitempty"` CloseSchedule []*CloseScheduleDTO `protobuf:"bytes,22,rep,name=CloseSchedule,proto3" json:"CloseSchedule,omitempty"` IsFixedDeliveryFee bool `protobuf:"varint,53,opt,name=IsFixedDeliveryFee,proto3" json:"IsFixedDeliveryFee,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*BusinessSimpleDTO) Descriptor ¶
func (*BusinessSimpleDTO) Descriptor() ([]byte, []int)
func (*BusinessSimpleDTO) GetBannerImageURL ¶
func (m *BusinessSimpleDTO) GetBannerImageURL() string
func (*BusinessSimpleDTO) GetCloseSchedule ¶
func (m *BusinessSimpleDTO) GetCloseSchedule() []*CloseScheduleDTO
func (*BusinessSimpleDTO) GetDeliveryFee ¶
func (m *BusinessSimpleDTO) GetDeliveryFee() float32
func (*BusinessSimpleDTO) GetDescription ¶
func (m *BusinessSimpleDTO) GetDescription() string
func (*BusinessSimpleDTO) GetID ¶
func (m *BusinessSimpleDTO) GetID() string
func (*BusinessSimpleDTO) GetIsFixedDeliveryFee ¶
func (m *BusinessSimpleDTO) GetIsFixedDeliveryFee() bool
func (*BusinessSimpleDTO) GetLogoURL ¶
func (m *BusinessSimpleDTO) GetLogoURL() string
func (*BusinessSimpleDTO) GetName ¶
func (m *BusinessSimpleDTO) GetName() string
func (*BusinessSimpleDTO) GetOpenSchedule ¶
func (m *BusinessSimpleDTO) GetOpenSchedule() []*OpenScheduleDTO
func (*BusinessSimpleDTO) Marshal ¶
func (m *BusinessSimpleDTO) Marshal() (dAtA []byte, err error)
func (*BusinessSimpleDTO) MarshalTo ¶
func (m *BusinessSimpleDTO) MarshalTo(dAtA []byte) (int, error)
func (*BusinessSimpleDTO) MarshalToSizedBuffer ¶
func (m *BusinessSimpleDTO) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*BusinessSimpleDTO) ProtoMessage ¶
func (*BusinessSimpleDTO) ProtoMessage()
func (*BusinessSimpleDTO) Reset ¶
func (m *BusinessSimpleDTO) Reset()
func (*BusinessSimpleDTO) Size ¶
func (m *BusinessSimpleDTO) Size() (n int)
func (*BusinessSimpleDTO) String ¶
func (m *BusinessSimpleDTO) String() string
func (*BusinessSimpleDTO) Unmarshal ¶
func (m *BusinessSimpleDTO) Unmarshal(dAtA []byte) error
func (*BusinessSimpleDTO) Validate ¶
func (this *BusinessSimpleDTO) Validate() error
func (*BusinessSimpleDTO) XXX_DiscardUnknown ¶
func (m *BusinessSimpleDTO) XXX_DiscardUnknown()
func (*BusinessSimpleDTO) XXX_Marshal ¶
func (m *BusinessSimpleDTO) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BusinessSimpleDTO) XXX_Merge ¶
func (m *BusinessSimpleDTO) XXX_Merge(src proto.Message)
func (*BusinessSimpleDTO) XXX_MessageName ¶
func (*BusinessSimpleDTO) XXX_MessageName() string
func (*BusinessSimpleDTO) XXX_Size ¶
func (m *BusinessSimpleDTO) XXX_Size() int
func (*BusinessSimpleDTO) XXX_Unmarshal ¶
func (m *BusinessSimpleDTO) XXX_Unmarshal(b []byte) error
type CloseScheduleDTO ¶
type CloseScheduleDTO struct { Date *types.Timestamp `protobuf:"bytes,1,opt,name=Date,proto3" json:"Date,omitempty"` IsAllDay bool `protobuf:"varint,2,opt,name=IsAllDay,proto3" json:"IsAllDay,omitempty"` Start *types.Timestamp `protobuf:"bytes,3,opt,name=Start,proto3" json:"Start,omitempty"` End *types.Timestamp `protobuf:"bytes,4,opt,name=End,proto3" json:"End,omitempty"` IsActive bool `protobuf:"varint,5,opt,name=IsActive,proto3" json:"IsActive,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CloseScheduleDTO) Descriptor ¶
func (*CloseScheduleDTO) Descriptor() ([]byte, []int)
func (*CloseScheduleDTO) GetDate ¶
func (m *CloseScheduleDTO) GetDate() *types.Timestamp
func (*CloseScheduleDTO) GetEnd ¶
func (m *CloseScheduleDTO) GetEnd() *types.Timestamp
func (*CloseScheduleDTO) GetIsActive ¶
func (m *CloseScheduleDTO) GetIsActive() bool
func (*CloseScheduleDTO) GetIsAllDay ¶
func (m *CloseScheduleDTO) GetIsAllDay() bool
func (*CloseScheduleDTO) GetStart ¶
func (m *CloseScheduleDTO) GetStart() *types.Timestamp
func (*CloseScheduleDTO) Marshal ¶
func (m *CloseScheduleDTO) Marshal() (dAtA []byte, err error)
func (*CloseScheduleDTO) MarshalToSizedBuffer ¶
func (m *CloseScheduleDTO) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CloseScheduleDTO) ProtoMessage ¶
func (*CloseScheduleDTO) ProtoMessage()
func (*CloseScheduleDTO) Reset ¶
func (m *CloseScheduleDTO) Reset()
func (*CloseScheduleDTO) Size ¶
func (m *CloseScheduleDTO) Size() (n int)
func (*CloseScheduleDTO) String ¶
func (m *CloseScheduleDTO) String() string
func (*CloseScheduleDTO) Unmarshal ¶
func (m *CloseScheduleDTO) Unmarshal(dAtA []byte) error
func (*CloseScheduleDTO) Validate ¶
func (this *CloseScheduleDTO) Validate() error
func (*CloseScheduleDTO) XXX_DiscardUnknown ¶
func (m *CloseScheduleDTO) XXX_DiscardUnknown()
func (*CloseScheduleDTO) XXX_Marshal ¶
func (m *CloseScheduleDTO) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CloseScheduleDTO) XXX_Merge ¶
func (m *CloseScheduleDTO) XXX_Merge(src proto.Message)
func (*CloseScheduleDTO) XXX_MessageName ¶
func (*CloseScheduleDTO) XXX_MessageName() string
func (*CloseScheduleDTO) XXX_Size ¶
func (m *CloseScheduleDTO) XXX_Size() int
func (*CloseScheduleDTO) XXX_Unmarshal ¶
func (m *CloseScheduleDTO) XXX_Unmarshal(b []byte) error
type CreateBusinessRequest ¶
type CreateBusinessRequest struct { EntityID string `protobuf:"bytes,1,opt,name=EntityID,proto3" json:"EntityID,omitempty"` AdminUserID string `protobuf:"bytes,2,opt,name=AdminUserID,proto3" json:"AdminUserID,omitempty"` Name string `protobuf:"bytes,3,opt,name=Name,proto3" json:"Name,omitempty"` Description string `protobuf:"bytes,4,opt,name=Description,proto3" json:"Description,omitempty"` BannerImageURL string `protobuf:"bytes,5,opt,name=BannerImageURL,proto3" json:"BannerImageURL,omitempty"` LogoURL string `protobuf:"bytes,6,opt,name=LogoURL,proto3" json:"LogoURL,omitempty"` DeliveryFee float32 `protobuf:"fixed32,7,opt,name=DeliveryFee,proto3" json:"DeliveryFee,omitempty"` OpenSchedule []*OpenScheduleDTO `protobuf:"bytes,21,rep,name=OpenSchedule,proto3" json:"OpenSchedule,omitempty"` CloseSchedule []*CloseScheduleDTO `protobuf:"bytes,22,rep,name=CloseSchedule,proto3" json:"CloseSchedule,omitempty"` IsActive bool `protobuf:"varint,52,opt,name=IsActive,proto3" json:"IsActive,omitempty"` IsFixedDeliveryFee bool `protobuf:"varint,53,opt,name=IsFixedDeliveryFee,proto3" json:"IsFixedDeliveryFee,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CreateBusinessRequest) Descriptor ¶
func (*CreateBusinessRequest) Descriptor() ([]byte, []int)
func (*CreateBusinessRequest) GetAdminUserID ¶
func (m *CreateBusinessRequest) GetAdminUserID() string
func (*CreateBusinessRequest) GetBannerImageURL ¶
func (m *CreateBusinessRequest) GetBannerImageURL() string
func (*CreateBusinessRequest) GetCloseSchedule ¶
func (m *CreateBusinessRequest) GetCloseSchedule() []*CloseScheduleDTO
func (*CreateBusinessRequest) GetDeliveryFee ¶
func (m *CreateBusinessRequest) GetDeliveryFee() float32
func (*CreateBusinessRequest) GetDescription ¶
func (m *CreateBusinessRequest) GetDescription() string
func (*CreateBusinessRequest) GetEntityID ¶
func (m *CreateBusinessRequest) GetEntityID() string
func (*CreateBusinessRequest) GetIsActive ¶
func (m *CreateBusinessRequest) GetIsActive() bool
func (*CreateBusinessRequest) GetIsFixedDeliveryFee ¶
func (m *CreateBusinessRequest) GetIsFixedDeliveryFee() bool
func (*CreateBusinessRequest) GetLogoURL ¶
func (m *CreateBusinessRequest) GetLogoURL() string
func (*CreateBusinessRequest) GetName ¶
func (m *CreateBusinessRequest) GetName() string
func (*CreateBusinessRequest) GetOpenSchedule ¶
func (m *CreateBusinessRequest) GetOpenSchedule() []*OpenScheduleDTO
func (*CreateBusinessRequest) Marshal ¶
func (m *CreateBusinessRequest) Marshal() (dAtA []byte, err error)
func (*CreateBusinessRequest) MarshalTo ¶
func (m *CreateBusinessRequest) MarshalTo(dAtA []byte) (int, error)
func (*CreateBusinessRequest) MarshalToSizedBuffer ¶
func (m *CreateBusinessRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CreateBusinessRequest) ProtoMessage ¶
func (*CreateBusinessRequest) ProtoMessage()
func (*CreateBusinessRequest) Reset ¶
func (m *CreateBusinessRequest) Reset()
func (*CreateBusinessRequest) Size ¶
func (m *CreateBusinessRequest) Size() (n int)
func (*CreateBusinessRequest) String ¶
func (m *CreateBusinessRequest) String() string
func (*CreateBusinessRequest) Unmarshal ¶
func (m *CreateBusinessRequest) Unmarshal(dAtA []byte) error
func (*CreateBusinessRequest) Validate ¶
func (this *CreateBusinessRequest) Validate() error
func (*CreateBusinessRequest) XXX_DiscardUnknown ¶
func (m *CreateBusinessRequest) XXX_DiscardUnknown()
func (*CreateBusinessRequest) XXX_Marshal ¶
func (m *CreateBusinessRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateBusinessRequest) XXX_Merge ¶
func (m *CreateBusinessRequest) XXX_Merge(src proto.Message)
func (*CreateBusinessRequest) XXX_MessageName ¶
func (*CreateBusinessRequest) XXX_MessageName() string
func (*CreateBusinessRequest) XXX_Size ¶
func (m *CreateBusinessRequest) XXX_Size() int
func (*CreateBusinessRequest) XXX_Unmarshal ¶
func (m *CreateBusinessRequest) XXX_Unmarshal(b []byte) error
type DeleteBusinessRequest ¶
type DeleteBusinessRequest struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DeleteBusinessRequest) Descriptor ¶
func (*DeleteBusinessRequest) Descriptor() ([]byte, []int)
func (*DeleteBusinessRequest) GetID ¶
func (m *DeleteBusinessRequest) GetID() string
func (*DeleteBusinessRequest) Marshal ¶
func (m *DeleteBusinessRequest) Marshal() (dAtA []byte, err error)
func (*DeleteBusinessRequest) MarshalTo ¶
func (m *DeleteBusinessRequest) MarshalTo(dAtA []byte) (int, error)
func (*DeleteBusinessRequest) MarshalToSizedBuffer ¶
func (m *DeleteBusinessRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DeleteBusinessRequest) ProtoMessage ¶
func (*DeleteBusinessRequest) ProtoMessage()
func (*DeleteBusinessRequest) Reset ¶
func (m *DeleteBusinessRequest) Reset()
func (*DeleteBusinessRequest) Size ¶
func (m *DeleteBusinessRequest) Size() (n int)
func (*DeleteBusinessRequest) String ¶
func (m *DeleteBusinessRequest) String() string
func (*DeleteBusinessRequest) Unmarshal ¶
func (m *DeleteBusinessRequest) Unmarshal(dAtA []byte) error
func (*DeleteBusinessRequest) Validate ¶
func (this *DeleteBusinessRequest) Validate() error
func (*DeleteBusinessRequest) XXX_DiscardUnknown ¶
func (m *DeleteBusinessRequest) XXX_DiscardUnknown()
func (*DeleteBusinessRequest) XXX_Marshal ¶
func (m *DeleteBusinessRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeleteBusinessRequest) XXX_Merge ¶
func (m *DeleteBusinessRequest) XXX_Merge(src proto.Message)
func (*DeleteBusinessRequest) XXX_MessageName ¶
func (*DeleteBusinessRequest) XXX_MessageName() string
func (*DeleteBusinessRequest) XXX_Size ¶
func (m *DeleteBusinessRequest) XXX_Size() int
func (*DeleteBusinessRequest) XXX_Unmarshal ¶
func (m *DeleteBusinessRequest) XXX_Unmarshal(b []byte) error
type Empty ¶
type Empty struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Empty) Descriptor ¶
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) XXX_DiscardUnknown ¶
func (m *Empty) XXX_DiscardUnknown()
func (*Empty) XXX_Marshal ¶
func (*Empty) XXX_MessageName ¶
func (*Empty) XXX_Unmarshal ¶
type GetBusinessesByEntityRequest ¶
type GetBusinessesByEntityRequest struct { EntityID string `protobuf:"bytes,1,opt,name=EntityID,proto3" json:"EntityID,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetBusinessesByEntityRequest) Descriptor ¶
func (*GetBusinessesByEntityRequest) Descriptor() ([]byte, []int)
func (*GetBusinessesByEntityRequest) GetEntityID ¶
func (m *GetBusinessesByEntityRequest) GetEntityID() string
func (*GetBusinessesByEntityRequest) Marshal ¶
func (m *GetBusinessesByEntityRequest) Marshal() (dAtA []byte, err error)
func (*GetBusinessesByEntityRequest) MarshalTo ¶
func (m *GetBusinessesByEntityRequest) MarshalTo(dAtA []byte) (int, error)
func (*GetBusinessesByEntityRequest) MarshalToSizedBuffer ¶
func (m *GetBusinessesByEntityRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetBusinessesByEntityRequest) ProtoMessage ¶
func (*GetBusinessesByEntityRequest) ProtoMessage()
func (*GetBusinessesByEntityRequest) Reset ¶
func (m *GetBusinessesByEntityRequest) Reset()
func (*GetBusinessesByEntityRequest) Size ¶
func (m *GetBusinessesByEntityRequest) Size() (n int)
func (*GetBusinessesByEntityRequest) String ¶
func (m *GetBusinessesByEntityRequest) String() string
func (*GetBusinessesByEntityRequest) Unmarshal ¶
func (m *GetBusinessesByEntityRequest) Unmarshal(dAtA []byte) error
func (*GetBusinessesByEntityRequest) Validate ¶
func (this *GetBusinessesByEntityRequest) Validate() error
func (*GetBusinessesByEntityRequest) XXX_DiscardUnknown ¶
func (m *GetBusinessesByEntityRequest) XXX_DiscardUnknown()
func (*GetBusinessesByEntityRequest) XXX_Marshal ¶
func (m *GetBusinessesByEntityRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetBusinessesByEntityRequest) XXX_Merge ¶
func (m *GetBusinessesByEntityRequest) XXX_Merge(src proto.Message)
func (*GetBusinessesByEntityRequest) XXX_MessageName ¶
func (*GetBusinessesByEntityRequest) XXX_MessageName() string
func (*GetBusinessesByEntityRequest) XXX_Size ¶
func (m *GetBusinessesByEntityRequest) XXX_Size() int
func (*GetBusinessesByEntityRequest) XXX_Unmarshal ¶
func (m *GetBusinessesByEntityRequest) XXX_Unmarshal(b []byte) error
type GetBusinessesRequest ¶
type GetBusinessesRequest struct { ID []string `protobuf:"bytes,1,rep,name=ID,proto3" json:"ID,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetBusinessesRequest) Descriptor ¶
func (*GetBusinessesRequest) Descriptor() ([]byte, []int)
func (*GetBusinessesRequest) GetID ¶
func (m *GetBusinessesRequest) GetID() []string
func (*GetBusinessesRequest) Marshal ¶
func (m *GetBusinessesRequest) Marshal() (dAtA []byte, err error)
func (*GetBusinessesRequest) MarshalTo ¶
func (m *GetBusinessesRequest) MarshalTo(dAtA []byte) (int, error)
func (*GetBusinessesRequest) MarshalToSizedBuffer ¶
func (m *GetBusinessesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetBusinessesRequest) ProtoMessage ¶
func (*GetBusinessesRequest) ProtoMessage()
func (*GetBusinessesRequest) Reset ¶
func (m *GetBusinessesRequest) Reset()
func (*GetBusinessesRequest) Size ¶
func (m *GetBusinessesRequest) Size() (n int)
func (*GetBusinessesRequest) String ¶
func (m *GetBusinessesRequest) String() string
func (*GetBusinessesRequest) Unmarshal ¶
func (m *GetBusinessesRequest) Unmarshal(dAtA []byte) error
func (*GetBusinessesRequest) Validate ¶
func (this *GetBusinessesRequest) Validate() error
func (*GetBusinessesRequest) XXX_DiscardUnknown ¶
func (m *GetBusinessesRequest) XXX_DiscardUnknown()
func (*GetBusinessesRequest) XXX_Marshal ¶
func (m *GetBusinessesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetBusinessesRequest) XXX_Merge ¶
func (m *GetBusinessesRequest) XXX_Merge(src proto.Message)
func (*GetBusinessesRequest) XXX_MessageName ¶
func (*GetBusinessesRequest) XXX_MessageName() string
func (*GetBusinessesRequest) XXX_Size ¶
func (m *GetBusinessesRequest) XXX_Size() int
func (*GetBusinessesRequest) XXX_Unmarshal ¶
func (m *GetBusinessesRequest) XXX_Unmarshal(b []byte) error
type GetDetailedBusinessRequest ¶
type GetDetailedBusinessRequest struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetDetailedBusinessRequest) Descriptor ¶
func (*GetDetailedBusinessRequest) Descriptor() ([]byte, []int)
func (*GetDetailedBusinessRequest) GetID ¶
func (m *GetDetailedBusinessRequest) GetID() string
func (*GetDetailedBusinessRequest) Marshal ¶
func (m *GetDetailedBusinessRequest) Marshal() (dAtA []byte, err error)
func (*GetDetailedBusinessRequest) MarshalTo ¶
func (m *GetDetailedBusinessRequest) MarshalTo(dAtA []byte) (int, error)
func (*GetDetailedBusinessRequest) MarshalToSizedBuffer ¶
func (m *GetDetailedBusinessRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetDetailedBusinessRequest) ProtoMessage ¶
func (*GetDetailedBusinessRequest) ProtoMessage()
func (*GetDetailedBusinessRequest) Reset ¶
func (m *GetDetailedBusinessRequest) Reset()
func (*GetDetailedBusinessRequest) Size ¶
func (m *GetDetailedBusinessRequest) Size() (n int)
func (*GetDetailedBusinessRequest) String ¶
func (m *GetDetailedBusinessRequest) String() string
func (*GetDetailedBusinessRequest) Unmarshal ¶
func (m *GetDetailedBusinessRequest) Unmarshal(dAtA []byte) error
func (*GetDetailedBusinessRequest) Validate ¶
func (this *GetDetailedBusinessRequest) Validate() error
func (*GetDetailedBusinessRequest) XXX_DiscardUnknown ¶
func (m *GetDetailedBusinessRequest) XXX_DiscardUnknown()
func (*GetDetailedBusinessRequest) XXX_Marshal ¶
func (m *GetDetailedBusinessRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetDetailedBusinessRequest) XXX_Merge ¶
func (m *GetDetailedBusinessRequest) XXX_Merge(src proto.Message)
func (*GetDetailedBusinessRequest) XXX_MessageName ¶
func (*GetDetailedBusinessRequest) XXX_MessageName() string
func (*GetDetailedBusinessRequest) XXX_Size ¶
func (m *GetDetailedBusinessRequest) XXX_Size() int
func (*GetDetailedBusinessRequest) XXX_Unmarshal ¶
func (m *GetDetailedBusinessRequest) XXX_Unmarshal(b []byte) error
type OpenScheduleDTO ¶
type OpenScheduleDTO struct { Day ScheduleDay `protobuf:"varint,1,opt,name=Day,proto3,enum=business.ScheduleDay" json:"Day,omitempty"` IsAllDay bool `protobuf:"varint,2,opt,name=IsAllDay,proto3" json:"IsAllDay,omitempty"` Start *types.Timestamp `protobuf:"bytes,3,opt,name=Start,proto3" json:"Start,omitempty"` End *types.Timestamp `protobuf:"bytes,4,opt,name=End,proto3" json:"End,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*OpenScheduleDTO) Descriptor ¶
func (*OpenScheduleDTO) Descriptor() ([]byte, []int)
func (*OpenScheduleDTO) GetDay ¶
func (m *OpenScheduleDTO) GetDay() ScheduleDay
func (*OpenScheduleDTO) GetEnd ¶
func (m *OpenScheduleDTO) GetEnd() *types.Timestamp
func (*OpenScheduleDTO) GetIsAllDay ¶
func (m *OpenScheduleDTO) GetIsAllDay() bool
func (*OpenScheduleDTO) GetStart ¶
func (m *OpenScheduleDTO) GetStart() *types.Timestamp
func (*OpenScheduleDTO) Marshal ¶
func (m *OpenScheduleDTO) Marshal() (dAtA []byte, err error)
func (*OpenScheduleDTO) MarshalToSizedBuffer ¶
func (m *OpenScheduleDTO) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*OpenScheduleDTO) ProtoMessage ¶
func (*OpenScheduleDTO) ProtoMessage()
func (*OpenScheduleDTO) Reset ¶
func (m *OpenScheduleDTO) Reset()
func (*OpenScheduleDTO) Size ¶
func (m *OpenScheduleDTO) Size() (n int)
func (*OpenScheduleDTO) String ¶
func (m *OpenScheduleDTO) String() string
func (*OpenScheduleDTO) Unmarshal ¶
func (m *OpenScheduleDTO) Unmarshal(dAtA []byte) error
func (*OpenScheduleDTO) Validate ¶
func (this *OpenScheduleDTO) Validate() error
func (*OpenScheduleDTO) XXX_DiscardUnknown ¶
func (m *OpenScheduleDTO) XXX_DiscardUnknown()
func (*OpenScheduleDTO) XXX_Marshal ¶
func (m *OpenScheduleDTO) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*OpenScheduleDTO) XXX_Merge ¶
func (m *OpenScheduleDTO) XXX_Merge(src proto.Message)
func (*OpenScheduleDTO) XXX_MessageName ¶
func (*OpenScheduleDTO) XXX_MessageName() string
func (*OpenScheduleDTO) XXX_Size ¶
func (m *OpenScheduleDTO) XXX_Size() int
func (*OpenScheduleDTO) XXX_Unmarshal ¶
func (m *OpenScheduleDTO) XXX_Unmarshal(b []byte) error
type RepeatedBusinessSimpleDTO ¶
type RepeatedBusinessSimpleDTO struct { Results []*BusinessSimpleDTO `protobuf:"bytes,1,rep,name=Results,proto3" json:"Results,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RepeatedBusinessSimpleDTO) Descriptor ¶
func (*RepeatedBusinessSimpleDTO) Descriptor() ([]byte, []int)
func (*RepeatedBusinessSimpleDTO) GetResults ¶
func (m *RepeatedBusinessSimpleDTO) GetResults() []*BusinessSimpleDTO
func (*RepeatedBusinessSimpleDTO) Marshal ¶
func (m *RepeatedBusinessSimpleDTO) Marshal() (dAtA []byte, err error)
func (*RepeatedBusinessSimpleDTO) MarshalTo ¶
func (m *RepeatedBusinessSimpleDTO) MarshalTo(dAtA []byte) (int, error)
func (*RepeatedBusinessSimpleDTO) MarshalToSizedBuffer ¶
func (m *RepeatedBusinessSimpleDTO) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*RepeatedBusinessSimpleDTO) ProtoMessage ¶
func (*RepeatedBusinessSimpleDTO) ProtoMessage()
func (*RepeatedBusinessSimpleDTO) Reset ¶
func (m *RepeatedBusinessSimpleDTO) Reset()
func (*RepeatedBusinessSimpleDTO) Size ¶
func (m *RepeatedBusinessSimpleDTO) Size() (n int)
func (*RepeatedBusinessSimpleDTO) String ¶
func (m *RepeatedBusinessSimpleDTO) String() string
func (*RepeatedBusinessSimpleDTO) Unmarshal ¶
func (m *RepeatedBusinessSimpleDTO) Unmarshal(dAtA []byte) error
func (*RepeatedBusinessSimpleDTO) Validate ¶
func (this *RepeatedBusinessSimpleDTO) Validate() error
func (*RepeatedBusinessSimpleDTO) XXX_DiscardUnknown ¶
func (m *RepeatedBusinessSimpleDTO) XXX_DiscardUnknown()
func (*RepeatedBusinessSimpleDTO) XXX_Marshal ¶
func (m *RepeatedBusinessSimpleDTO) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RepeatedBusinessSimpleDTO) XXX_Merge ¶
func (m *RepeatedBusinessSimpleDTO) XXX_Merge(src proto.Message)
func (*RepeatedBusinessSimpleDTO) XXX_MessageName ¶
func (*RepeatedBusinessSimpleDTO) XXX_MessageName() string
func (*RepeatedBusinessSimpleDTO) XXX_Size ¶
func (m *RepeatedBusinessSimpleDTO) XXX_Size() int
func (*RepeatedBusinessSimpleDTO) XXX_Unmarshal ¶
func (m *RepeatedBusinessSimpleDTO) XXX_Unmarshal(b []byte) error
type ScheduleDay ¶
type ScheduleDay int32
const ( ScheduleDay_Monday ScheduleDay = 0 ScheduleDay_Tuesday ScheduleDay = 1 ScheduleDay_Wednesday ScheduleDay = 2 ScheduleDay_Thursday ScheduleDay = 3 ScheduleDay_Friday ScheduleDay = 4 ScheduleDay_Saturday ScheduleDay = 5 ScheduleDay_Sunday ScheduleDay = 6 )
func (ScheduleDay) EnumDescriptor ¶
func (ScheduleDay) EnumDescriptor() ([]byte, []int)
func (ScheduleDay) String ¶
func (x ScheduleDay) String() string
type UnimplementedBusinessServiceServer ¶
type UnimplementedBusinessServiceServer struct { }
UnimplementedBusinessServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedBusinessServiceServer) Create ¶
func (*UnimplementedBusinessServiceServer) Create(ctx context.Context, req *CreateBusinessRequest) (*BusinessDetailedDTO, error)
func (*UnimplementedBusinessServiceServer) Delete ¶
func (*UnimplementedBusinessServiceServer) Delete(ctx context.Context, req *DeleteBusinessRequest) (*BoolResponse, error)
func (*UnimplementedBusinessServiceServer) GetBusinesses ¶
func (*UnimplementedBusinessServiceServer) GetBusinesses(ctx context.Context, req *GetBusinessesRequest) (*RepeatedBusinessSimpleDTO, error)
func (*UnimplementedBusinessServiceServer) GetBusinessesByEntity ¶
func (*UnimplementedBusinessServiceServer) GetBusinessesByEntity(ctx context.Context, req *GetBusinessesByEntityRequest) (*RepeatedBusinessSimpleDTO, error)
func (*UnimplementedBusinessServiceServer) GetCurrentBusiesses ¶
func (*UnimplementedBusinessServiceServer) GetCurrentBusiesses(ctx context.Context, req *Empty) (*RepeatedBusinessSimpleDTO, error)
func (*UnimplementedBusinessServiceServer) GetDetailedBusiness ¶
func (*UnimplementedBusinessServiceServer) GetDetailedBusiness(ctx context.Context, req *GetDetailedBusinessRequest) (*BusinessDetailedDTO, error)
func (*UnimplementedBusinessServiceServer) Update ¶
func (*UnimplementedBusinessServiceServer) Update(ctx context.Context, req *UpdateBusinessRequest) (*BusinessDetailedDTO, error)
type UpdateBusinessRequest ¶
type UpdateBusinessRequest struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` AdminUserID string `protobuf:"bytes,2,opt,name=AdminUserID,proto3" json:"AdminUserID,omitempty"` Name string `protobuf:"bytes,3,opt,name=Name,proto3" json:"Name,omitempty"` Description string `protobuf:"bytes,4,opt,name=Description,proto3" json:"Description,omitempty"` BannerImageURL string `protobuf:"bytes,5,opt,name=BannerImageURL,proto3" json:"BannerImageURL,omitempty"` LogoURL string `protobuf:"bytes,6,opt,name=LogoURL,proto3" json:"LogoURL,omitempty"` DeliveryFee float32 `protobuf:"fixed32,7,opt,name=DeliveryFee,proto3" json:"DeliveryFee,omitempty"` OpenSchedule []*OpenScheduleDTO `protobuf:"bytes,21,rep,name=OpenSchedule,proto3" json:"OpenSchedule,omitempty"` CloseSchedule []*CloseScheduleDTO `protobuf:"bytes,22,rep,name=CloseSchedule,proto3" json:"CloseSchedule,omitempty"` IsActive bool `protobuf:"varint,52,opt,name=IsActive,proto3" json:"IsActive,omitempty"` IsFixedDeliveryFee bool `protobuf:"varint,53,opt,name=IsFixedDeliveryFee,proto3" json:"IsFixedDeliveryFee,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UpdateBusinessRequest) Descriptor ¶
func (*UpdateBusinessRequest) Descriptor() ([]byte, []int)
func (*UpdateBusinessRequest) GetAdminUserID ¶
func (m *UpdateBusinessRequest) GetAdminUserID() string
func (*UpdateBusinessRequest) GetBannerImageURL ¶
func (m *UpdateBusinessRequest) GetBannerImageURL() string
func (*UpdateBusinessRequest) GetCloseSchedule ¶
func (m *UpdateBusinessRequest) GetCloseSchedule() []*CloseScheduleDTO
func (*UpdateBusinessRequest) GetDeliveryFee ¶
func (m *UpdateBusinessRequest) GetDeliveryFee() float32
func (*UpdateBusinessRequest) GetDescription ¶
func (m *UpdateBusinessRequest) GetDescription() string
func (*UpdateBusinessRequest) GetID ¶
func (m *UpdateBusinessRequest) GetID() string
func (*UpdateBusinessRequest) GetIsActive ¶
func (m *UpdateBusinessRequest) GetIsActive() bool
func (*UpdateBusinessRequest) GetIsFixedDeliveryFee ¶
func (m *UpdateBusinessRequest) GetIsFixedDeliveryFee() bool
func (*UpdateBusinessRequest) GetLogoURL ¶
func (m *UpdateBusinessRequest) GetLogoURL() string
func (*UpdateBusinessRequest) GetName ¶
func (m *UpdateBusinessRequest) GetName() string
func (*UpdateBusinessRequest) GetOpenSchedule ¶
func (m *UpdateBusinessRequest) GetOpenSchedule() []*OpenScheduleDTO
func (*UpdateBusinessRequest) Marshal ¶
func (m *UpdateBusinessRequest) Marshal() (dAtA []byte, err error)
func (*UpdateBusinessRequest) MarshalTo ¶
func (m *UpdateBusinessRequest) MarshalTo(dAtA []byte) (int, error)
func (*UpdateBusinessRequest) MarshalToSizedBuffer ¶
func (m *UpdateBusinessRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*UpdateBusinessRequest) ProtoMessage ¶
func (*UpdateBusinessRequest) ProtoMessage()
func (*UpdateBusinessRequest) Reset ¶
func (m *UpdateBusinessRequest) Reset()
func (*UpdateBusinessRequest) Size ¶
func (m *UpdateBusinessRequest) Size() (n int)
func (*UpdateBusinessRequest) String ¶
func (m *UpdateBusinessRequest) String() string
func (*UpdateBusinessRequest) Unmarshal ¶
func (m *UpdateBusinessRequest) Unmarshal(dAtA []byte) error
func (*UpdateBusinessRequest) Validate ¶
func (this *UpdateBusinessRequest) Validate() error
func (*UpdateBusinessRequest) XXX_DiscardUnknown ¶
func (m *UpdateBusinessRequest) XXX_DiscardUnknown()
func (*UpdateBusinessRequest) XXX_Marshal ¶
func (m *UpdateBusinessRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UpdateBusinessRequest) XXX_Merge ¶
func (m *UpdateBusinessRequest) XXX_Merge(src proto.Message)
func (*UpdateBusinessRequest) XXX_MessageName ¶
func (*UpdateBusinessRequest) XXX_MessageName() string
func (*UpdateBusinessRequest) XXX_Size ¶
func (m *UpdateBusinessRequest) XXX_Size() int
func (*UpdateBusinessRequest) XXX_Unmarshal ¶
func (m *UpdateBusinessRequest) XXX_Unmarshal(b []byte) error