Documentation ¶
Index ¶
- Variables
- func RegisterBrandServiceServer(s *grpc.Server, srv BrandServiceServer)
- type Brand
- func (*Brand) Descriptor() ([]byte, []int)
- func (m *Brand) GetCreatedAt() *timestamp.Timestamp
- func (m *Brand) GetCreatedBy() string
- func (m *Brand) GetDeletedAt() *timestamp.Timestamp
- func (m *Brand) GetDeletedBy() string
- func (m *Brand) GetID() string
- func (m *Brand) GetName() string
- func (m *Brand) GetStatus() Status
- func (m *Brand) GetUpdatedAt() *timestamp.Timestamp
- func (m *Brand) GetUpdatedBy() string
- func (*Brand) ProtoMessage()
- func (m *Brand) Reset()
- func (m *Brand) String() string
- func (m *Brand) XXX_DiscardUnknown()
- func (m *Brand) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Brand) XXX_Merge(src proto.Message)
- func (m *Brand) XXX_Size() int
- func (m *Brand) XXX_Unmarshal(b []byte) error
- type BrandServiceClient
- type BrandServiceServer
- type CreateBrandRequest
- func (*CreateBrandRequest) Descriptor() ([]byte, []int)
- func (m *CreateBrandRequest) GetCreatedAt() *timestamp.Timestamp
- func (m *CreateBrandRequest) GetCreatedBy() string
- func (m *CreateBrandRequest) GetName() string
- func (m *CreateBrandRequest) GetStatus() Status
- func (m *CreateBrandRequest) GetUpdatedAt() *timestamp.Timestamp
- func (m *CreateBrandRequest) GetUpdatedBy() string
- func (*CreateBrandRequest) ProtoMessage()
- func (m *CreateBrandRequest) Reset()
- func (m *CreateBrandRequest) String() string
- func (m *CreateBrandRequest) XXX_DiscardUnknown()
- func (m *CreateBrandRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateBrandRequest) XXX_Merge(src proto.Message)
- func (m *CreateBrandRequest) XXX_Size() int
- func (m *CreateBrandRequest) XXX_Unmarshal(b []byte) error
- type CreateBrandResponse
- func (*CreateBrandResponse) Descriptor() ([]byte, []int)
- func (m *CreateBrandResponse) GetID() string
- func (*CreateBrandResponse) ProtoMessage()
- func (m *CreateBrandResponse) Reset()
- func (m *CreateBrandResponse) String() string
- func (m *CreateBrandResponse) XXX_DiscardUnknown()
- func (m *CreateBrandResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateBrandResponse) XXX_Merge(src proto.Message)
- func (m *CreateBrandResponse) XXX_Size() int
- func (m *CreateBrandResponse) XXX_Unmarshal(b []byte) error
- type DeleteBrandRequest
- func (*DeleteBrandRequest) Descriptor() ([]byte, []int)
- func (m *DeleteBrandRequest) GetDeletedBy() string
- func (m *DeleteBrandRequest) GetID() string
- func (*DeleteBrandRequest) ProtoMessage()
- func (m *DeleteBrandRequest) Reset()
- func (m *DeleteBrandRequest) String() string
- func (m *DeleteBrandRequest) XXX_DiscardUnknown()
- func (m *DeleteBrandRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeleteBrandRequest) XXX_Merge(src proto.Message)
- func (m *DeleteBrandRequest) XXX_Size() int
- func (m *DeleteBrandRequest) XXX_Unmarshal(b []byte) error
- type GetBrandRequest
- func (*GetBrandRequest) Descriptor() ([]byte, []int)
- func (m *GetBrandRequest) GetID() string
- func (*GetBrandRequest) ProtoMessage()
- func (m *GetBrandRequest) Reset()
- func (m *GetBrandRequest) String() string
- func (m *GetBrandRequest) XXX_DiscardUnknown()
- func (m *GetBrandRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetBrandRequest) XXX_Merge(src proto.Message)
- func (m *GetBrandRequest) XXX_Size() int
- func (m *GetBrandRequest) XXX_Unmarshal(b []byte) error
- type GetBrandResponse
- func (*GetBrandResponse) Descriptor() ([]byte, []int)
- func (m *GetBrandResponse) GetCreatedAt() *timestamp.Timestamp
- func (m *GetBrandResponse) GetCreatedBy() string
- func (m *GetBrandResponse) GetID() string
- func (m *GetBrandResponse) GetName() string
- func (m *GetBrandResponse) GetStatus() Status
- func (m *GetBrandResponse) GetUpdatedAt() *timestamp.Timestamp
- func (m *GetBrandResponse) GetUpdatedBy() string
- func (*GetBrandResponse) ProtoMessage()
- func (m *GetBrandResponse) Reset()
- func (m *GetBrandResponse) String() string
- func (m *GetBrandResponse) XXX_DiscardUnknown()
- func (m *GetBrandResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetBrandResponse) XXX_Merge(src proto.Message)
- func (m *GetBrandResponse) XXX_Size() int
- func (m *GetBrandResponse) XXX_Unmarshal(b []byte) error
- type ListBrandRequest
- func (*ListBrandRequest) Descriptor() ([]byte, []int)
- func (m *ListBrandRequest) GetEndDate() string
- func (m *ListBrandRequest) GetLimit() int32
- func (m *ListBrandRequest) GetOffset() int32
- func (m *ListBrandRequest) GetSearchTerm() string
- func (m *ListBrandRequest) GetSortBy() SortBy
- func (m *ListBrandRequest) GetSortByColumn() string
- func (m *ListBrandRequest) GetStartDate() string
- func (m *ListBrandRequest) GetStatus() Status
- func (*ListBrandRequest) ProtoMessage()
- func (m *ListBrandRequest) Reset()
- func (m *ListBrandRequest) String() string
- func (m *ListBrandRequest) XXX_DiscardUnknown()
- func (m *ListBrandRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListBrandRequest) XXX_Merge(src proto.Message)
- func (m *ListBrandRequest) XXX_Size() int
- func (m *ListBrandRequest) XXX_Unmarshal(b []byte) error
- type ListBrandResponse
- func (*ListBrandResponse) Descriptor() ([]byte, []int)
- func (m *ListBrandResponse) GetBrands() []*Brand
- func (m *ListBrandResponse) GetTotal() int32
- func (*ListBrandResponse) ProtoMessage()
- func (m *ListBrandResponse) Reset()
- func (m *ListBrandResponse) String() string
- func (m *ListBrandResponse) XXX_DiscardUnknown()
- func (m *ListBrandResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListBrandResponse) XXX_Merge(src proto.Message)
- func (m *ListBrandResponse) XXX_Size() int
- func (m *ListBrandResponse) XXX_Unmarshal(b []byte) error
- type SortBy
- type Status
- type UnimplementedBrandServiceServer
- func (*UnimplementedBrandServiceServer) CreateBrand(ctx context.Context, req *CreateBrandRequest) (*CreateBrandResponse, error)
- func (*UnimplementedBrandServiceServer) DeleteBrand(ctx context.Context, req *DeleteBrandRequest) (*empty.Empty, error)
- func (*UnimplementedBrandServiceServer) GetBrand(ctx context.Context, req *GetBrandRequest) (*GetBrandResponse, error)
- func (*UnimplementedBrandServiceServer) ListBrand(ctx context.Context, req *ListBrandRequest) (*ListBrandResponse, error)
- func (*UnimplementedBrandServiceServer) UpdateBrand(ctx context.Context, req *UpdateBrandRequest) (*UpdateBrandResponse, error)
- type UpdateBrandRequest
- func (*UpdateBrandRequest) Descriptor() ([]byte, []int)
- func (m *UpdateBrandRequest) GetID() string
- func (m *UpdateBrandRequest) GetName() string
- func (m *UpdateBrandRequest) GetStatus() Status
- func (m *UpdateBrandRequest) GetUpdatedAt() *timestamp.Timestamp
- func (m *UpdateBrandRequest) GetUpdatedBy() string
- func (*UpdateBrandRequest) ProtoMessage()
- func (m *UpdateBrandRequest) Reset()
- func (m *UpdateBrandRequest) String() string
- func (m *UpdateBrandRequest) XXX_DiscardUnknown()
- func (m *UpdateBrandRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpdateBrandRequest) XXX_Merge(src proto.Message)
- func (m *UpdateBrandRequest) XXX_Size() int
- func (m *UpdateBrandRequest) XXX_Unmarshal(b []byte) error
- type UpdateBrandResponse
- func (*UpdateBrandResponse) Descriptor() ([]byte, []int)
- func (m *UpdateBrandResponse) GetID() string
- func (m *UpdateBrandResponse) GetName() string
- func (m *UpdateBrandResponse) GetStatus() Status
- func (m *UpdateBrandResponse) GetUpdatedAt() *timestamp.Timestamp
- func (m *UpdateBrandResponse) GetUpdatedBy() string
- func (*UpdateBrandResponse) ProtoMessage()
- func (m *UpdateBrandResponse) Reset()
- func (m *UpdateBrandResponse) String() string
- func (m *UpdateBrandResponse) XXX_DiscardUnknown()
- func (m *UpdateBrandResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpdateBrandResponse) XXX_Merge(src proto.Message)
- func (m *UpdateBrandResponse) XXX_Size() int
- func (m *UpdateBrandResponse) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var SortBy_name = map[int32]string{
0: "DESC",
1: "ASC",
}
View Source
var SortBy_value = map[string]int32{
"DESC": 0,
"ASC": 1,
}
View Source
var Status_name = map[int32]string{
0: "Unknown",
1: "Active",
2: "Inactive",
}
View Source
var Status_value = map[string]int32{
"Unknown": 0,
"Active": 1,
"Inactive": 2,
}
Functions ¶
func RegisterBrandServiceServer ¶
func RegisterBrandServiceServer(s *grpc.Server, srv BrandServiceServer)
Types ¶
type Brand ¶
type Brand struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` Name string `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"` Status Status `protobuf:"varint,3,opt,name=Status,proto3,enum=brand.Status" json:"Status,omitempty"` CreatedAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=CreatedAt,proto3" json:"CreatedAt,omitempty"` CreatedBy string `protobuf:"bytes,5,opt,name=CreatedBy,proto3" json:"CreatedBy,omitempty"` UpdatedAt *timestamp.Timestamp `protobuf:"bytes,6,opt,name=UpdatedAt,proto3" json:"UpdatedAt,omitempty"` UpdatedBy string `protobuf:"bytes,7,opt,name=UpdatedBy,proto3" json:"UpdatedBy,omitempty"` DeletedAt *timestamp.Timestamp `protobuf:"bytes,8,opt,name=DeletedAt,proto3" json:"DeletedAt,omitempty"` DeletedBy string `protobuf:"bytes,9,opt,name=DeletedBy,proto3" json:"DeletedBy,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Brand) Descriptor ¶
func (*Brand) GetCreatedAt ¶
func (*Brand) GetCreatedBy ¶
func (*Brand) GetDeletedAt ¶
func (*Brand) GetDeletedBy ¶
func (*Brand) GetUpdatedAt ¶
func (*Brand) GetUpdatedBy ¶
func (*Brand) ProtoMessage ¶
func (*Brand) ProtoMessage()
func (*Brand) XXX_DiscardUnknown ¶
func (m *Brand) XXX_DiscardUnknown()
func (*Brand) XXX_Marshal ¶
func (*Brand) XXX_Unmarshal ¶
type BrandServiceClient ¶
type BrandServiceClient interface { CreateBrand(ctx context.Context, in *CreateBrandRequest, opts ...grpc.CallOption) (*CreateBrandResponse, error) GetBrand(ctx context.Context, in *GetBrandRequest, opts ...grpc.CallOption) (*GetBrandResponse, error) UpdateBrand(ctx context.Context, in *UpdateBrandRequest, opts ...grpc.CallOption) (*UpdateBrandResponse, error) ListBrand(ctx context.Context, in *ListBrandRequest, opts ...grpc.CallOption) (*ListBrandResponse, error) DeleteBrand(ctx context.Context, in *DeleteBrandRequest, opts ...grpc.CallOption) (*empty.Empty, error) }
BrandServiceClient is the client API for BrandService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewBrandServiceClient ¶
func NewBrandServiceClient(cc grpc.ClientConnInterface) BrandServiceClient
type BrandServiceServer ¶
type BrandServiceServer interface { CreateBrand(context.Context, *CreateBrandRequest) (*CreateBrandResponse, error) GetBrand(context.Context, *GetBrandRequest) (*GetBrandResponse, error) UpdateBrand(context.Context, *UpdateBrandRequest) (*UpdateBrandResponse, error) ListBrand(context.Context, *ListBrandRequest) (*ListBrandResponse, error) DeleteBrand(context.Context, *DeleteBrandRequest) (*empty.Empty, error) }
BrandServiceServer is the server API for BrandService service.
type CreateBrandRequest ¶
type CreateBrandRequest struct { Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"` Status Status `protobuf:"varint,2,opt,name=Status,proto3,enum=brand.Status" json:"Status,omitempty"` CreatedAt *timestamp.Timestamp `protobuf:"bytes,3,opt,name=CreatedAt,proto3" json:"CreatedAt,omitempty"` CreatedBy string `protobuf:"bytes,4,opt,name=CreatedBy,proto3" json:"CreatedBy,omitempty"` UpdatedAt *timestamp.Timestamp `protobuf:"bytes,5,opt,name=UpdatedAt,proto3" json:"UpdatedAt,omitempty"` UpdatedBy string `protobuf:"bytes,6,opt,name=UpdatedBy,proto3" json:"UpdatedBy,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CreateBrandRequest) Descriptor ¶
func (*CreateBrandRequest) Descriptor() ([]byte, []int)
func (*CreateBrandRequest) GetCreatedAt ¶
func (m *CreateBrandRequest) GetCreatedAt() *timestamp.Timestamp
func (*CreateBrandRequest) GetCreatedBy ¶
func (m *CreateBrandRequest) GetCreatedBy() string
func (*CreateBrandRequest) GetName ¶
func (m *CreateBrandRequest) GetName() string
func (*CreateBrandRequest) GetStatus ¶
func (m *CreateBrandRequest) GetStatus() Status
func (*CreateBrandRequest) GetUpdatedAt ¶
func (m *CreateBrandRequest) GetUpdatedAt() *timestamp.Timestamp
func (*CreateBrandRequest) GetUpdatedBy ¶
func (m *CreateBrandRequest) GetUpdatedBy() string
func (*CreateBrandRequest) ProtoMessage ¶
func (*CreateBrandRequest) ProtoMessage()
func (*CreateBrandRequest) Reset ¶
func (m *CreateBrandRequest) Reset()
func (*CreateBrandRequest) String ¶
func (m *CreateBrandRequest) String() string
func (*CreateBrandRequest) XXX_DiscardUnknown ¶
func (m *CreateBrandRequest) XXX_DiscardUnknown()
func (*CreateBrandRequest) XXX_Marshal ¶
func (m *CreateBrandRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateBrandRequest) XXX_Merge ¶
func (m *CreateBrandRequest) XXX_Merge(src proto.Message)
func (*CreateBrandRequest) XXX_Size ¶
func (m *CreateBrandRequest) XXX_Size() int
func (*CreateBrandRequest) XXX_Unmarshal ¶
func (m *CreateBrandRequest) XXX_Unmarshal(b []byte) error
type CreateBrandResponse ¶
type CreateBrandResponse 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 (*CreateBrandResponse) Descriptor ¶
func (*CreateBrandResponse) Descriptor() ([]byte, []int)
func (*CreateBrandResponse) GetID ¶
func (m *CreateBrandResponse) GetID() string
func (*CreateBrandResponse) ProtoMessage ¶
func (*CreateBrandResponse) ProtoMessage()
func (*CreateBrandResponse) Reset ¶
func (m *CreateBrandResponse) Reset()
func (*CreateBrandResponse) String ¶
func (m *CreateBrandResponse) String() string
func (*CreateBrandResponse) XXX_DiscardUnknown ¶
func (m *CreateBrandResponse) XXX_DiscardUnknown()
func (*CreateBrandResponse) XXX_Marshal ¶
func (m *CreateBrandResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateBrandResponse) XXX_Merge ¶
func (m *CreateBrandResponse) XXX_Merge(src proto.Message)
func (*CreateBrandResponse) XXX_Size ¶
func (m *CreateBrandResponse) XXX_Size() int
func (*CreateBrandResponse) XXX_Unmarshal ¶
func (m *CreateBrandResponse) XXX_Unmarshal(b []byte) error
type DeleteBrandRequest ¶
type DeleteBrandRequest struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` DeletedBy string `protobuf:"bytes,2,opt,name=DeletedBy,proto3" json:"DeletedBy,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DeleteBrandRequest) Descriptor ¶
func (*DeleteBrandRequest) Descriptor() ([]byte, []int)
func (*DeleteBrandRequest) GetDeletedBy ¶
func (m *DeleteBrandRequest) GetDeletedBy() string
func (*DeleteBrandRequest) GetID ¶
func (m *DeleteBrandRequest) GetID() string
func (*DeleteBrandRequest) ProtoMessage ¶
func (*DeleteBrandRequest) ProtoMessage()
func (*DeleteBrandRequest) Reset ¶
func (m *DeleteBrandRequest) Reset()
func (*DeleteBrandRequest) String ¶
func (m *DeleteBrandRequest) String() string
func (*DeleteBrandRequest) XXX_DiscardUnknown ¶
func (m *DeleteBrandRequest) XXX_DiscardUnknown()
func (*DeleteBrandRequest) XXX_Marshal ¶
func (m *DeleteBrandRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeleteBrandRequest) XXX_Merge ¶
func (m *DeleteBrandRequest) XXX_Merge(src proto.Message)
func (*DeleteBrandRequest) XXX_Size ¶
func (m *DeleteBrandRequest) XXX_Size() int
func (*DeleteBrandRequest) XXX_Unmarshal ¶
func (m *DeleteBrandRequest) XXX_Unmarshal(b []byte) error
type GetBrandRequest ¶
type GetBrandRequest 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 (*GetBrandRequest) Descriptor ¶
func (*GetBrandRequest) Descriptor() ([]byte, []int)
func (*GetBrandRequest) GetID ¶
func (m *GetBrandRequest) GetID() string
func (*GetBrandRequest) ProtoMessage ¶
func (*GetBrandRequest) ProtoMessage()
func (*GetBrandRequest) Reset ¶
func (m *GetBrandRequest) Reset()
func (*GetBrandRequest) String ¶
func (m *GetBrandRequest) String() string
func (*GetBrandRequest) XXX_DiscardUnknown ¶
func (m *GetBrandRequest) XXX_DiscardUnknown()
func (*GetBrandRequest) XXX_Marshal ¶
func (m *GetBrandRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetBrandRequest) XXX_Merge ¶
func (m *GetBrandRequest) XXX_Merge(src proto.Message)
func (*GetBrandRequest) XXX_Size ¶
func (m *GetBrandRequest) XXX_Size() int
func (*GetBrandRequest) XXX_Unmarshal ¶
func (m *GetBrandRequest) XXX_Unmarshal(b []byte) error
type GetBrandResponse ¶
type GetBrandResponse struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` Name string `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"` Status Status `protobuf:"varint,3,opt,name=Status,proto3,enum=brand.Status" json:"Status,omitempty"` CreatedAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=CreatedAt,proto3" json:"CreatedAt,omitempty"` CreatedBy string `protobuf:"bytes,5,opt,name=CreatedBy,proto3" json:"CreatedBy,omitempty"` UpdatedAt *timestamp.Timestamp `protobuf:"bytes,6,opt,name=UpdatedAt,proto3" json:"UpdatedAt,omitempty"` UpdatedBy string `protobuf:"bytes,7,opt,name=UpdatedBy,proto3" json:"UpdatedBy,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*GetBrandResponse) Descriptor ¶
func (*GetBrandResponse) Descriptor() ([]byte, []int)
func (*GetBrandResponse) GetCreatedAt ¶
func (m *GetBrandResponse) GetCreatedAt() *timestamp.Timestamp
func (*GetBrandResponse) GetCreatedBy ¶
func (m *GetBrandResponse) GetCreatedBy() string
func (*GetBrandResponse) GetID ¶
func (m *GetBrandResponse) GetID() string
func (*GetBrandResponse) GetName ¶
func (m *GetBrandResponse) GetName() string
func (*GetBrandResponse) GetStatus ¶
func (m *GetBrandResponse) GetStatus() Status
func (*GetBrandResponse) GetUpdatedAt ¶
func (m *GetBrandResponse) GetUpdatedAt() *timestamp.Timestamp
func (*GetBrandResponse) GetUpdatedBy ¶
func (m *GetBrandResponse) GetUpdatedBy() string
func (*GetBrandResponse) ProtoMessage ¶
func (*GetBrandResponse) ProtoMessage()
func (*GetBrandResponse) Reset ¶
func (m *GetBrandResponse) Reset()
func (*GetBrandResponse) String ¶
func (m *GetBrandResponse) String() string
func (*GetBrandResponse) XXX_DiscardUnknown ¶
func (m *GetBrandResponse) XXX_DiscardUnknown()
func (*GetBrandResponse) XXX_Marshal ¶
func (m *GetBrandResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetBrandResponse) XXX_Merge ¶
func (m *GetBrandResponse) XXX_Merge(src proto.Message)
func (*GetBrandResponse) XXX_Size ¶
func (m *GetBrandResponse) XXX_Size() int
func (*GetBrandResponse) XXX_Unmarshal ¶
func (m *GetBrandResponse) XXX_Unmarshal(b []byte) error
type ListBrandRequest ¶
type ListBrandRequest struct { SortBy SortBy `protobuf:"varint,1,opt,name=SortBy,proto3,enum=brand.SortBy" json:"SortBy,omitempty"` SortByColumn string `protobuf:"bytes,2,opt,name=SortByColumn,proto3" json:"SortByColumn,omitempty"` Status Status `protobuf:"varint,3,opt,name=Status,proto3,enum=brand.Status" json:"Status,omitempty"` Limit int32 `protobuf:"varint,4,opt,name=Limit,proto3" json:"Limit,omitempty"` Offset int32 `protobuf:"varint,5,opt,name=Offset,proto3" json:"Offset,omitempty"` SearchTerm string `protobuf:"bytes,6,opt,name=SearchTerm,proto3" json:"SearchTerm,omitempty"` StartDate string `protobuf:"bytes,7,opt,name=StartDate,proto3" json:"StartDate,omitempty"` EndDate string `protobuf:"bytes,8,opt,name=EndDate,proto3" json:"EndDate,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ListBrandRequest) Descriptor ¶
func (*ListBrandRequest) Descriptor() ([]byte, []int)
func (*ListBrandRequest) GetEndDate ¶
func (m *ListBrandRequest) GetEndDate() string
func (*ListBrandRequest) GetLimit ¶
func (m *ListBrandRequest) GetLimit() int32
func (*ListBrandRequest) GetOffset ¶
func (m *ListBrandRequest) GetOffset() int32
func (*ListBrandRequest) GetSearchTerm ¶
func (m *ListBrandRequest) GetSearchTerm() string
func (*ListBrandRequest) GetSortBy ¶
func (m *ListBrandRequest) GetSortBy() SortBy
func (*ListBrandRequest) GetSortByColumn ¶
func (m *ListBrandRequest) GetSortByColumn() string
func (*ListBrandRequest) GetStartDate ¶
func (m *ListBrandRequest) GetStartDate() string
func (*ListBrandRequest) GetStatus ¶
func (m *ListBrandRequest) GetStatus() Status
func (*ListBrandRequest) ProtoMessage ¶
func (*ListBrandRequest) ProtoMessage()
func (*ListBrandRequest) Reset ¶
func (m *ListBrandRequest) Reset()
func (*ListBrandRequest) String ¶
func (m *ListBrandRequest) String() string
func (*ListBrandRequest) XXX_DiscardUnknown ¶
func (m *ListBrandRequest) XXX_DiscardUnknown()
func (*ListBrandRequest) XXX_Marshal ¶
func (m *ListBrandRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListBrandRequest) XXX_Merge ¶
func (m *ListBrandRequest) XXX_Merge(src proto.Message)
func (*ListBrandRequest) XXX_Size ¶
func (m *ListBrandRequest) XXX_Size() int
func (*ListBrandRequest) XXX_Unmarshal ¶
func (m *ListBrandRequest) XXX_Unmarshal(b []byte) error
type ListBrandResponse ¶
type ListBrandResponse struct { Brands []*Brand `protobuf:"bytes,1,rep,name=Brands,proto3" json:"Brands,omitempty"` Total int32 `protobuf:"varint,2,opt,name=Total,proto3" json:"Total,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ListBrandResponse) Descriptor ¶
func (*ListBrandResponse) Descriptor() ([]byte, []int)
func (*ListBrandResponse) GetBrands ¶
func (m *ListBrandResponse) GetBrands() []*Brand
func (*ListBrandResponse) GetTotal ¶
func (m *ListBrandResponse) GetTotal() int32
func (*ListBrandResponse) ProtoMessage ¶
func (*ListBrandResponse) ProtoMessage()
func (*ListBrandResponse) Reset ¶
func (m *ListBrandResponse) Reset()
func (*ListBrandResponse) String ¶
func (m *ListBrandResponse) String() string
func (*ListBrandResponse) XXX_DiscardUnknown ¶
func (m *ListBrandResponse) XXX_DiscardUnknown()
func (*ListBrandResponse) XXX_Marshal ¶
func (m *ListBrandResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListBrandResponse) XXX_Merge ¶
func (m *ListBrandResponse) XXX_Merge(src proto.Message)
func (*ListBrandResponse) XXX_Size ¶
func (m *ListBrandResponse) XXX_Size() int
func (*ListBrandResponse) XXX_Unmarshal ¶
func (m *ListBrandResponse) XXX_Unmarshal(b []byte) error
type UnimplementedBrandServiceServer ¶
type UnimplementedBrandServiceServer struct { }
UnimplementedBrandServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedBrandServiceServer) CreateBrand ¶
func (*UnimplementedBrandServiceServer) CreateBrand(ctx context.Context, req *CreateBrandRequest) (*CreateBrandResponse, error)
func (*UnimplementedBrandServiceServer) DeleteBrand ¶
func (*UnimplementedBrandServiceServer) DeleteBrand(ctx context.Context, req *DeleteBrandRequest) (*empty.Empty, error)
func (*UnimplementedBrandServiceServer) GetBrand ¶
func (*UnimplementedBrandServiceServer) GetBrand(ctx context.Context, req *GetBrandRequest) (*GetBrandResponse, error)
func (*UnimplementedBrandServiceServer) ListBrand ¶
func (*UnimplementedBrandServiceServer) ListBrand(ctx context.Context, req *ListBrandRequest) (*ListBrandResponse, error)
func (*UnimplementedBrandServiceServer) UpdateBrand ¶
func (*UnimplementedBrandServiceServer) UpdateBrand(ctx context.Context, req *UpdateBrandRequest) (*UpdateBrandResponse, error)
type UpdateBrandRequest ¶
type UpdateBrandRequest struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` Name string `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"` Status Status `protobuf:"varint,3,opt,name=Status,proto3,enum=brand.Status" json:"Status,omitempty"` UpdatedAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=UpdatedAt,proto3" json:"UpdatedAt,omitempty"` UpdatedBy string `protobuf:"bytes,5,opt,name=UpdatedBy,proto3" json:"UpdatedBy,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UpdateBrandRequest) Descriptor ¶
func (*UpdateBrandRequest) Descriptor() ([]byte, []int)
func (*UpdateBrandRequest) GetID ¶
func (m *UpdateBrandRequest) GetID() string
func (*UpdateBrandRequest) GetName ¶
func (m *UpdateBrandRequest) GetName() string
func (*UpdateBrandRequest) GetStatus ¶
func (m *UpdateBrandRequest) GetStatus() Status
func (*UpdateBrandRequest) GetUpdatedAt ¶
func (m *UpdateBrandRequest) GetUpdatedAt() *timestamp.Timestamp
func (*UpdateBrandRequest) GetUpdatedBy ¶
func (m *UpdateBrandRequest) GetUpdatedBy() string
func (*UpdateBrandRequest) ProtoMessage ¶
func (*UpdateBrandRequest) ProtoMessage()
func (*UpdateBrandRequest) Reset ¶
func (m *UpdateBrandRequest) Reset()
func (*UpdateBrandRequest) String ¶
func (m *UpdateBrandRequest) String() string
func (*UpdateBrandRequest) XXX_DiscardUnknown ¶
func (m *UpdateBrandRequest) XXX_DiscardUnknown()
func (*UpdateBrandRequest) XXX_Marshal ¶
func (m *UpdateBrandRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UpdateBrandRequest) XXX_Merge ¶
func (m *UpdateBrandRequest) XXX_Merge(src proto.Message)
func (*UpdateBrandRequest) XXX_Size ¶
func (m *UpdateBrandRequest) XXX_Size() int
func (*UpdateBrandRequest) XXX_Unmarshal ¶
func (m *UpdateBrandRequest) XXX_Unmarshal(b []byte) error
type UpdateBrandResponse ¶
type UpdateBrandResponse struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` Name string `protobuf:"bytes,2,opt,name=Name,proto3" json:"Name,omitempty"` Status Status `protobuf:"varint,3,opt,name=Status,proto3,enum=brand.Status" json:"Status,omitempty"` UpdatedAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=UpdatedAt,proto3" json:"UpdatedAt,omitempty"` UpdatedBy string `protobuf:"bytes,5,opt,name=UpdatedBy,proto3" json:"UpdatedBy,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UpdateBrandResponse) Descriptor ¶
func (*UpdateBrandResponse) Descriptor() ([]byte, []int)
func (*UpdateBrandResponse) GetID ¶
func (m *UpdateBrandResponse) GetID() string
func (*UpdateBrandResponse) GetName ¶
func (m *UpdateBrandResponse) GetName() string
func (*UpdateBrandResponse) GetStatus ¶
func (m *UpdateBrandResponse) GetStatus() Status
func (*UpdateBrandResponse) GetUpdatedAt ¶
func (m *UpdateBrandResponse) GetUpdatedAt() *timestamp.Timestamp
func (*UpdateBrandResponse) GetUpdatedBy ¶
func (m *UpdateBrandResponse) GetUpdatedBy() string
func (*UpdateBrandResponse) ProtoMessage ¶
func (*UpdateBrandResponse) ProtoMessage()
func (*UpdateBrandResponse) Reset ¶
func (m *UpdateBrandResponse) Reset()
func (*UpdateBrandResponse) String ¶
func (m *UpdateBrandResponse) String() string
func (*UpdateBrandResponse) XXX_DiscardUnknown ¶
func (m *UpdateBrandResponse) XXX_DiscardUnknown()
func (*UpdateBrandResponse) XXX_Marshal ¶
func (m *UpdateBrandResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UpdateBrandResponse) XXX_Merge ¶
func (m *UpdateBrandResponse) XXX_Merge(src proto.Message)
func (*UpdateBrandResponse) XXX_Size ¶
func (m *UpdateBrandResponse) XXX_Size() int
func (*UpdateBrandResponse) XXX_Unmarshal ¶
func (m *UpdateBrandResponse) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.