Documentation
¶
Index ¶
- Variables
- func RegisterCategoryServiceServer(s *grpc.Server, srv CategoryServiceServer)
- type Category
- func (*Category) Descriptor() ([]byte, []int)
- func (m *Category) GetCreatedAt() *timestamp.Timestamp
- func (m *Category) GetCreatedBy() string
- func (m *Category) GetDeletedAt() *timestamp.Timestamp
- func (m *Category) GetDeletedBy() string
- func (m *Category) GetID() string
- func (m *Category) GetName() string
- func (m *Category) GetStatus() Status
- func (m *Category) GetUpdatedAt() *timestamp.Timestamp
- func (m *Category) GetUpdatedBy() string
- func (*Category) ProtoMessage()
- func (m *Category) Reset()
- func (m *Category) String() string
- func (m *Category) XXX_DiscardUnknown()
- func (m *Category) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Category) XXX_Merge(src proto.Message)
- func (m *Category) XXX_Size() int
- func (m *Category) XXX_Unmarshal(b []byte) error
- type CategoryServiceClient
- type CategoryServiceServer
- type CreateCategoryRequest
- func (*CreateCategoryRequest) Descriptor() ([]byte, []int)
- func (m *CreateCategoryRequest) GetCreatedAt() *timestamp.Timestamp
- func (m *CreateCategoryRequest) GetCreatedBy() string
- func (m *CreateCategoryRequest) GetName() string
- func (m *CreateCategoryRequest) GetStatus() Status
- func (m *CreateCategoryRequest) GetUpdatedAt() *timestamp.Timestamp
- func (m *CreateCategoryRequest) GetUpdatedBy() string
- func (*CreateCategoryRequest) ProtoMessage()
- func (m *CreateCategoryRequest) Reset()
- func (m *CreateCategoryRequest) String() string
- func (m *CreateCategoryRequest) XXX_DiscardUnknown()
- func (m *CreateCategoryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateCategoryRequest) XXX_Merge(src proto.Message)
- func (m *CreateCategoryRequest) XXX_Size() int
- func (m *CreateCategoryRequest) XXX_Unmarshal(b []byte) error
- type CreateCategoryResponse
- func (*CreateCategoryResponse) Descriptor() ([]byte, []int)
- func (m *CreateCategoryResponse) GetID() string
- func (*CreateCategoryResponse) ProtoMessage()
- func (m *CreateCategoryResponse) Reset()
- func (m *CreateCategoryResponse) String() string
- func (m *CreateCategoryResponse) XXX_DiscardUnknown()
- func (m *CreateCategoryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateCategoryResponse) XXX_Merge(src proto.Message)
- func (m *CreateCategoryResponse) XXX_Size() int
- func (m *CreateCategoryResponse) XXX_Unmarshal(b []byte) error
- type DeleteCategoryRequest
- func (*DeleteCategoryRequest) Descriptor() ([]byte, []int)
- func (m *DeleteCategoryRequest) GetDeletedBy() string
- func (m *DeleteCategoryRequest) GetID() string
- func (*DeleteCategoryRequest) ProtoMessage()
- func (m *DeleteCategoryRequest) Reset()
- func (m *DeleteCategoryRequest) String() string
- func (m *DeleteCategoryRequest) XXX_DiscardUnknown()
- func (m *DeleteCategoryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DeleteCategoryRequest) XXX_Merge(src proto.Message)
- func (m *DeleteCategoryRequest) XXX_Size() int
- func (m *DeleteCategoryRequest) XXX_Unmarshal(b []byte) error
- type GetCategoryRequest
- func (*GetCategoryRequest) Descriptor() ([]byte, []int)
- func (m *GetCategoryRequest) GetID() string
- func (*GetCategoryRequest) ProtoMessage()
- func (m *GetCategoryRequest) Reset()
- func (m *GetCategoryRequest) String() string
- func (m *GetCategoryRequest) XXX_DiscardUnknown()
- func (m *GetCategoryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetCategoryRequest) XXX_Merge(src proto.Message)
- func (m *GetCategoryRequest) XXX_Size() int
- func (m *GetCategoryRequest) XXX_Unmarshal(b []byte) error
- type GetCategoryResponse
- func (*GetCategoryResponse) Descriptor() ([]byte, []int)
- func (m *GetCategoryResponse) GetCreatedAt() *timestamp.Timestamp
- func (m *GetCategoryResponse) GetCreatedBy() string
- func (m *GetCategoryResponse) GetID() string
- func (m *GetCategoryResponse) GetName() string
- func (m *GetCategoryResponse) GetStatus() Status
- func (m *GetCategoryResponse) GetUpdatedAt() *timestamp.Timestamp
- func (m *GetCategoryResponse) GetUpdatedBy() string
- func (*GetCategoryResponse) ProtoMessage()
- func (m *GetCategoryResponse) Reset()
- func (m *GetCategoryResponse) String() string
- func (m *GetCategoryResponse) XXX_DiscardUnknown()
- func (m *GetCategoryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetCategoryResponse) XXX_Merge(src proto.Message)
- func (m *GetCategoryResponse) XXX_Size() int
- func (m *GetCategoryResponse) XXX_Unmarshal(b []byte) error
- type ListCategoryRequest
- func (*ListCategoryRequest) Descriptor() ([]byte, []int)
- func (m *ListCategoryRequest) GetEndDate() string
- func (m *ListCategoryRequest) GetLimit() int32
- func (m *ListCategoryRequest) GetOffset() int32
- func (m *ListCategoryRequest) GetSearchTerm() string
- func (m *ListCategoryRequest) GetSortBy() SortBy
- func (m *ListCategoryRequest) GetSortByColumn() string
- func (m *ListCategoryRequest) GetStartDate() string
- func (m *ListCategoryRequest) GetStatus() Status
- func (*ListCategoryRequest) ProtoMessage()
- func (m *ListCategoryRequest) Reset()
- func (m *ListCategoryRequest) String() string
- func (m *ListCategoryRequest) XXX_DiscardUnknown()
- func (m *ListCategoryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListCategoryRequest) XXX_Merge(src proto.Message)
- func (m *ListCategoryRequest) XXX_Size() int
- func (m *ListCategoryRequest) XXX_Unmarshal(b []byte) error
- type ListCategoryResponse
- func (*ListCategoryResponse) Descriptor() ([]byte, []int)
- func (m *ListCategoryResponse) GetCategories() []*Category
- func (m *ListCategoryResponse) GetTotal() int32
- func (*ListCategoryResponse) ProtoMessage()
- func (m *ListCategoryResponse) Reset()
- func (m *ListCategoryResponse) String() string
- func (m *ListCategoryResponse) XXX_DiscardUnknown()
- func (m *ListCategoryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ListCategoryResponse) XXX_Merge(src proto.Message)
- func (m *ListCategoryResponse) XXX_Size() int
- func (m *ListCategoryResponse) XXX_Unmarshal(b []byte) error
- type SortBy
- type Status
- type UnimplementedCategoryServiceServer
- func (*UnimplementedCategoryServiceServer) CreateCategory(ctx context.Context, req *CreateCategoryRequest) (*CreateCategoryResponse, error)
- func (*UnimplementedCategoryServiceServer) DeleteCategory(ctx context.Context, req *DeleteCategoryRequest) (*empty.Empty, error)
- func (*UnimplementedCategoryServiceServer) GetCategory(ctx context.Context, req *GetCategoryRequest) (*GetCategoryResponse, error)
- func (*UnimplementedCategoryServiceServer) ListCategory(ctx context.Context, req *ListCategoryRequest) (*ListCategoryResponse, error)
- func (*UnimplementedCategoryServiceServer) UpdateCategory(ctx context.Context, req *UpdateCategoryRequest) (*UpdateCategoryResponse, error)
- type UpdateCategoryRequest
- func (*UpdateCategoryRequest) Descriptor() ([]byte, []int)
- func (m *UpdateCategoryRequest) GetID() string
- func (m *UpdateCategoryRequest) GetName() string
- func (m *UpdateCategoryRequest) GetStatus() Status
- func (m *UpdateCategoryRequest) GetUpdatedAt() *timestamp.Timestamp
- func (m *UpdateCategoryRequest) GetUpdatedBy() string
- func (*UpdateCategoryRequest) ProtoMessage()
- func (m *UpdateCategoryRequest) Reset()
- func (m *UpdateCategoryRequest) String() string
- func (m *UpdateCategoryRequest) XXX_DiscardUnknown()
- func (m *UpdateCategoryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpdateCategoryRequest) XXX_Merge(src proto.Message)
- func (m *UpdateCategoryRequest) XXX_Size() int
- func (m *UpdateCategoryRequest) XXX_Unmarshal(b []byte) error
- type UpdateCategoryResponse
- func (*UpdateCategoryResponse) Descriptor() ([]byte, []int)
- func (m *UpdateCategoryResponse) GetID() string
- func (m *UpdateCategoryResponse) GetName() string
- func (m *UpdateCategoryResponse) GetStatus() Status
- func (m *UpdateCategoryResponse) GetUpdatedAt() *timestamp.Timestamp
- func (m *UpdateCategoryResponse) GetUpdatedBy() string
- func (*UpdateCategoryResponse) ProtoMessage()
- func (m *UpdateCategoryResponse) Reset()
- func (m *UpdateCategoryResponse) String() string
- func (m *UpdateCategoryResponse) XXX_DiscardUnknown()
- func (m *UpdateCategoryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpdateCategoryResponse) XXX_Merge(src proto.Message)
- func (m *UpdateCategoryResponse) XXX_Size() int
- func (m *UpdateCategoryResponse) 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 RegisterCategoryServiceServer ¶
func RegisterCategoryServiceServer(s *grpc.Server, srv CategoryServiceServer)
Types ¶
type Category ¶
type Category 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=category.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 (*Category) Descriptor ¶
func (*Category) GetCreatedAt ¶
func (*Category) GetCreatedBy ¶
func (*Category) GetDeletedAt ¶
func (*Category) GetDeletedBy ¶
func (*Category) GetUpdatedAt ¶
func (*Category) GetUpdatedBy ¶
func (*Category) ProtoMessage ¶
func (*Category) ProtoMessage()
func (*Category) XXX_DiscardUnknown ¶
func (m *Category) XXX_DiscardUnknown()
func (*Category) XXX_Marshal ¶
func (*Category) XXX_Unmarshal ¶
type CategoryServiceClient ¶
type CategoryServiceClient interface { CreateCategory(ctx context.Context, in *CreateCategoryRequest, opts ...grpc.CallOption) (*CreateCategoryResponse, error) GetCategory(ctx context.Context, in *GetCategoryRequest, opts ...grpc.CallOption) (*GetCategoryResponse, error) UpdateCategory(ctx context.Context, in *UpdateCategoryRequest, opts ...grpc.CallOption) (*UpdateCategoryResponse, error) ListCategory(ctx context.Context, in *ListCategoryRequest, opts ...grpc.CallOption) (*ListCategoryResponse, error) DeleteCategory(ctx context.Context, in *DeleteCategoryRequest, opts ...grpc.CallOption) (*empty.Empty, error) }
CategoryServiceClient is the client API for CategoryService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewCategoryServiceClient ¶
func NewCategoryServiceClient(cc grpc.ClientConnInterface) CategoryServiceClient
type CategoryServiceServer ¶
type CategoryServiceServer interface { CreateCategory(context.Context, *CreateCategoryRequest) (*CreateCategoryResponse, error) GetCategory(context.Context, *GetCategoryRequest) (*GetCategoryResponse, error) UpdateCategory(context.Context, *UpdateCategoryRequest) (*UpdateCategoryResponse, error) ListCategory(context.Context, *ListCategoryRequest) (*ListCategoryResponse, error) DeleteCategory(context.Context, *DeleteCategoryRequest) (*empty.Empty, error) }
CategoryServiceServer is the server API for CategoryService service.
type CreateCategoryRequest ¶
type CreateCategoryRequest struct { Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"` Status Status `protobuf:"varint,2,opt,name=Status,proto3,enum=category.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 (*CreateCategoryRequest) Descriptor ¶
func (*CreateCategoryRequest) Descriptor() ([]byte, []int)
func (*CreateCategoryRequest) GetCreatedAt ¶
func (m *CreateCategoryRequest) GetCreatedAt() *timestamp.Timestamp
func (*CreateCategoryRequest) GetCreatedBy ¶
func (m *CreateCategoryRequest) GetCreatedBy() string
func (*CreateCategoryRequest) GetName ¶
func (m *CreateCategoryRequest) GetName() string
func (*CreateCategoryRequest) GetStatus ¶
func (m *CreateCategoryRequest) GetStatus() Status
func (*CreateCategoryRequest) GetUpdatedAt ¶
func (m *CreateCategoryRequest) GetUpdatedAt() *timestamp.Timestamp
func (*CreateCategoryRequest) GetUpdatedBy ¶
func (m *CreateCategoryRequest) GetUpdatedBy() string
func (*CreateCategoryRequest) ProtoMessage ¶
func (*CreateCategoryRequest) ProtoMessage()
func (*CreateCategoryRequest) Reset ¶
func (m *CreateCategoryRequest) Reset()
func (*CreateCategoryRequest) String ¶
func (m *CreateCategoryRequest) String() string
func (*CreateCategoryRequest) XXX_DiscardUnknown ¶
func (m *CreateCategoryRequest) XXX_DiscardUnknown()
func (*CreateCategoryRequest) XXX_Marshal ¶
func (m *CreateCategoryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateCategoryRequest) XXX_Merge ¶
func (m *CreateCategoryRequest) XXX_Merge(src proto.Message)
func (*CreateCategoryRequest) XXX_Size ¶
func (m *CreateCategoryRequest) XXX_Size() int
func (*CreateCategoryRequest) XXX_Unmarshal ¶
func (m *CreateCategoryRequest) XXX_Unmarshal(b []byte) error
type CreateCategoryResponse ¶
type CreateCategoryResponse 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 (*CreateCategoryResponse) Descriptor ¶
func (*CreateCategoryResponse) Descriptor() ([]byte, []int)
func (*CreateCategoryResponse) GetID ¶
func (m *CreateCategoryResponse) GetID() string
func (*CreateCategoryResponse) ProtoMessage ¶
func (*CreateCategoryResponse) ProtoMessage()
func (*CreateCategoryResponse) Reset ¶
func (m *CreateCategoryResponse) Reset()
func (*CreateCategoryResponse) String ¶
func (m *CreateCategoryResponse) String() string
func (*CreateCategoryResponse) XXX_DiscardUnknown ¶
func (m *CreateCategoryResponse) XXX_DiscardUnknown()
func (*CreateCategoryResponse) XXX_Marshal ¶
func (m *CreateCategoryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateCategoryResponse) XXX_Merge ¶
func (m *CreateCategoryResponse) XXX_Merge(src proto.Message)
func (*CreateCategoryResponse) XXX_Size ¶
func (m *CreateCategoryResponse) XXX_Size() int
func (*CreateCategoryResponse) XXX_Unmarshal ¶
func (m *CreateCategoryResponse) XXX_Unmarshal(b []byte) error
type DeleteCategoryRequest ¶
type DeleteCategoryRequest 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 (*DeleteCategoryRequest) Descriptor ¶
func (*DeleteCategoryRequest) Descriptor() ([]byte, []int)
func (*DeleteCategoryRequest) GetDeletedBy ¶
func (m *DeleteCategoryRequest) GetDeletedBy() string
func (*DeleteCategoryRequest) GetID ¶
func (m *DeleteCategoryRequest) GetID() string
func (*DeleteCategoryRequest) ProtoMessage ¶
func (*DeleteCategoryRequest) ProtoMessage()
func (*DeleteCategoryRequest) Reset ¶
func (m *DeleteCategoryRequest) Reset()
func (*DeleteCategoryRequest) String ¶
func (m *DeleteCategoryRequest) String() string
func (*DeleteCategoryRequest) XXX_DiscardUnknown ¶
func (m *DeleteCategoryRequest) XXX_DiscardUnknown()
func (*DeleteCategoryRequest) XXX_Marshal ¶
func (m *DeleteCategoryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DeleteCategoryRequest) XXX_Merge ¶
func (m *DeleteCategoryRequest) XXX_Merge(src proto.Message)
func (*DeleteCategoryRequest) XXX_Size ¶
func (m *DeleteCategoryRequest) XXX_Size() int
func (*DeleteCategoryRequest) XXX_Unmarshal ¶
func (m *DeleteCategoryRequest) XXX_Unmarshal(b []byte) error
type GetCategoryRequest ¶
type GetCategoryRequest 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 (*GetCategoryRequest) Descriptor ¶
func (*GetCategoryRequest) Descriptor() ([]byte, []int)
func (*GetCategoryRequest) GetID ¶
func (m *GetCategoryRequest) GetID() string
func (*GetCategoryRequest) ProtoMessage ¶
func (*GetCategoryRequest) ProtoMessage()
func (*GetCategoryRequest) Reset ¶
func (m *GetCategoryRequest) Reset()
func (*GetCategoryRequest) String ¶
func (m *GetCategoryRequest) String() string
func (*GetCategoryRequest) XXX_DiscardUnknown ¶
func (m *GetCategoryRequest) XXX_DiscardUnknown()
func (*GetCategoryRequest) XXX_Marshal ¶
func (m *GetCategoryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetCategoryRequest) XXX_Merge ¶
func (m *GetCategoryRequest) XXX_Merge(src proto.Message)
func (*GetCategoryRequest) XXX_Size ¶
func (m *GetCategoryRequest) XXX_Size() int
func (*GetCategoryRequest) XXX_Unmarshal ¶
func (m *GetCategoryRequest) XXX_Unmarshal(b []byte) error
type GetCategoryResponse ¶
type GetCategoryResponse 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=category.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 (*GetCategoryResponse) Descriptor ¶
func (*GetCategoryResponse) Descriptor() ([]byte, []int)
func (*GetCategoryResponse) GetCreatedAt ¶
func (m *GetCategoryResponse) GetCreatedAt() *timestamp.Timestamp
func (*GetCategoryResponse) GetCreatedBy ¶
func (m *GetCategoryResponse) GetCreatedBy() string
func (*GetCategoryResponse) GetID ¶
func (m *GetCategoryResponse) GetID() string
func (*GetCategoryResponse) GetName ¶
func (m *GetCategoryResponse) GetName() string
func (*GetCategoryResponse) GetStatus ¶
func (m *GetCategoryResponse) GetStatus() Status
func (*GetCategoryResponse) GetUpdatedAt ¶
func (m *GetCategoryResponse) GetUpdatedAt() *timestamp.Timestamp
func (*GetCategoryResponse) GetUpdatedBy ¶
func (m *GetCategoryResponse) GetUpdatedBy() string
func (*GetCategoryResponse) ProtoMessage ¶
func (*GetCategoryResponse) ProtoMessage()
func (*GetCategoryResponse) Reset ¶
func (m *GetCategoryResponse) Reset()
func (*GetCategoryResponse) String ¶
func (m *GetCategoryResponse) String() string
func (*GetCategoryResponse) XXX_DiscardUnknown ¶
func (m *GetCategoryResponse) XXX_DiscardUnknown()
func (*GetCategoryResponse) XXX_Marshal ¶
func (m *GetCategoryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetCategoryResponse) XXX_Merge ¶
func (m *GetCategoryResponse) XXX_Merge(src proto.Message)
func (*GetCategoryResponse) XXX_Size ¶
func (m *GetCategoryResponse) XXX_Size() int
func (*GetCategoryResponse) XXX_Unmarshal ¶
func (m *GetCategoryResponse) XXX_Unmarshal(b []byte) error
type ListCategoryRequest ¶
type ListCategoryRequest struct { SortBy SortBy `protobuf:"varint,1,opt,name=SortBy,proto3,enum=category.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=category.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 (*ListCategoryRequest) Descriptor ¶
func (*ListCategoryRequest) Descriptor() ([]byte, []int)
func (*ListCategoryRequest) GetEndDate ¶
func (m *ListCategoryRequest) GetEndDate() string
func (*ListCategoryRequest) GetLimit ¶
func (m *ListCategoryRequest) GetLimit() int32
func (*ListCategoryRequest) GetOffset ¶
func (m *ListCategoryRequest) GetOffset() int32
func (*ListCategoryRequest) GetSearchTerm ¶
func (m *ListCategoryRequest) GetSearchTerm() string
func (*ListCategoryRequest) GetSortBy ¶
func (m *ListCategoryRequest) GetSortBy() SortBy
func (*ListCategoryRequest) GetSortByColumn ¶
func (m *ListCategoryRequest) GetSortByColumn() string
func (*ListCategoryRequest) GetStartDate ¶
func (m *ListCategoryRequest) GetStartDate() string
func (*ListCategoryRequest) GetStatus ¶
func (m *ListCategoryRequest) GetStatus() Status
func (*ListCategoryRequest) ProtoMessage ¶
func (*ListCategoryRequest) ProtoMessage()
func (*ListCategoryRequest) Reset ¶
func (m *ListCategoryRequest) Reset()
func (*ListCategoryRequest) String ¶
func (m *ListCategoryRequest) String() string
func (*ListCategoryRequest) XXX_DiscardUnknown ¶
func (m *ListCategoryRequest) XXX_DiscardUnknown()
func (*ListCategoryRequest) XXX_Marshal ¶
func (m *ListCategoryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListCategoryRequest) XXX_Merge ¶
func (m *ListCategoryRequest) XXX_Merge(src proto.Message)
func (*ListCategoryRequest) XXX_Size ¶
func (m *ListCategoryRequest) XXX_Size() int
func (*ListCategoryRequest) XXX_Unmarshal ¶
func (m *ListCategoryRequest) XXX_Unmarshal(b []byte) error
type ListCategoryResponse ¶
type ListCategoryResponse struct { Categories []*Category `protobuf:"bytes,1,rep,name=Categories,proto3" json:"Categories,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 (*ListCategoryResponse) Descriptor ¶
func (*ListCategoryResponse) Descriptor() ([]byte, []int)
func (*ListCategoryResponse) GetCategories ¶
func (m *ListCategoryResponse) GetCategories() []*Category
func (*ListCategoryResponse) GetTotal ¶
func (m *ListCategoryResponse) GetTotal() int32
func (*ListCategoryResponse) ProtoMessage ¶
func (*ListCategoryResponse) ProtoMessage()
func (*ListCategoryResponse) Reset ¶
func (m *ListCategoryResponse) Reset()
func (*ListCategoryResponse) String ¶
func (m *ListCategoryResponse) String() string
func (*ListCategoryResponse) XXX_DiscardUnknown ¶
func (m *ListCategoryResponse) XXX_DiscardUnknown()
func (*ListCategoryResponse) XXX_Marshal ¶
func (m *ListCategoryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ListCategoryResponse) XXX_Merge ¶
func (m *ListCategoryResponse) XXX_Merge(src proto.Message)
func (*ListCategoryResponse) XXX_Size ¶
func (m *ListCategoryResponse) XXX_Size() int
func (*ListCategoryResponse) XXX_Unmarshal ¶
func (m *ListCategoryResponse) XXX_Unmarshal(b []byte) error
type UnimplementedCategoryServiceServer ¶
type UnimplementedCategoryServiceServer struct { }
UnimplementedCategoryServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedCategoryServiceServer) CreateCategory ¶
func (*UnimplementedCategoryServiceServer) CreateCategory(ctx context.Context, req *CreateCategoryRequest) (*CreateCategoryResponse, error)
func (*UnimplementedCategoryServiceServer) DeleteCategory ¶
func (*UnimplementedCategoryServiceServer) DeleteCategory(ctx context.Context, req *DeleteCategoryRequest) (*empty.Empty, error)
func (*UnimplementedCategoryServiceServer) GetCategory ¶
func (*UnimplementedCategoryServiceServer) GetCategory(ctx context.Context, req *GetCategoryRequest) (*GetCategoryResponse, error)
func (*UnimplementedCategoryServiceServer) ListCategory ¶
func (*UnimplementedCategoryServiceServer) ListCategory(ctx context.Context, req *ListCategoryRequest) (*ListCategoryResponse, error)
func (*UnimplementedCategoryServiceServer) UpdateCategory ¶
func (*UnimplementedCategoryServiceServer) UpdateCategory(ctx context.Context, req *UpdateCategoryRequest) (*UpdateCategoryResponse, error)
type UpdateCategoryRequest ¶
type UpdateCategoryRequest 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=category.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 (*UpdateCategoryRequest) Descriptor ¶
func (*UpdateCategoryRequest) Descriptor() ([]byte, []int)
func (*UpdateCategoryRequest) GetID ¶
func (m *UpdateCategoryRequest) GetID() string
func (*UpdateCategoryRequest) GetName ¶
func (m *UpdateCategoryRequest) GetName() string
func (*UpdateCategoryRequest) GetStatus ¶
func (m *UpdateCategoryRequest) GetStatus() Status
func (*UpdateCategoryRequest) GetUpdatedAt ¶
func (m *UpdateCategoryRequest) GetUpdatedAt() *timestamp.Timestamp
func (*UpdateCategoryRequest) GetUpdatedBy ¶
func (m *UpdateCategoryRequest) GetUpdatedBy() string
func (*UpdateCategoryRequest) ProtoMessage ¶
func (*UpdateCategoryRequest) ProtoMessage()
func (*UpdateCategoryRequest) Reset ¶
func (m *UpdateCategoryRequest) Reset()
func (*UpdateCategoryRequest) String ¶
func (m *UpdateCategoryRequest) String() string
func (*UpdateCategoryRequest) XXX_DiscardUnknown ¶
func (m *UpdateCategoryRequest) XXX_DiscardUnknown()
func (*UpdateCategoryRequest) XXX_Marshal ¶
func (m *UpdateCategoryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UpdateCategoryRequest) XXX_Merge ¶
func (m *UpdateCategoryRequest) XXX_Merge(src proto.Message)
func (*UpdateCategoryRequest) XXX_Size ¶
func (m *UpdateCategoryRequest) XXX_Size() int
func (*UpdateCategoryRequest) XXX_Unmarshal ¶
func (m *UpdateCategoryRequest) XXX_Unmarshal(b []byte) error
type UpdateCategoryResponse ¶
type UpdateCategoryResponse 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=category.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 (*UpdateCategoryResponse) Descriptor ¶
func (*UpdateCategoryResponse) Descriptor() ([]byte, []int)
func (*UpdateCategoryResponse) GetID ¶
func (m *UpdateCategoryResponse) GetID() string
func (*UpdateCategoryResponse) GetName ¶
func (m *UpdateCategoryResponse) GetName() string
func (*UpdateCategoryResponse) GetStatus ¶
func (m *UpdateCategoryResponse) GetStatus() Status
func (*UpdateCategoryResponse) GetUpdatedAt ¶
func (m *UpdateCategoryResponse) GetUpdatedAt() *timestamp.Timestamp
func (*UpdateCategoryResponse) GetUpdatedBy ¶
func (m *UpdateCategoryResponse) GetUpdatedBy() string
func (*UpdateCategoryResponse) ProtoMessage ¶
func (*UpdateCategoryResponse) ProtoMessage()
func (*UpdateCategoryResponse) Reset ¶
func (m *UpdateCategoryResponse) Reset()
func (*UpdateCategoryResponse) String ¶
func (m *UpdateCategoryResponse) String() string
func (*UpdateCategoryResponse) XXX_DiscardUnknown ¶
func (m *UpdateCategoryResponse) XXX_DiscardUnknown()
func (*UpdateCategoryResponse) XXX_Marshal ¶
func (m *UpdateCategoryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UpdateCategoryResponse) XXX_Merge ¶
func (m *UpdateCategoryResponse) XXX_Merge(src proto.Message)
func (*UpdateCategoryResponse) XXX_Size ¶
func (m *UpdateCategoryResponse) XXX_Size() int
func (*UpdateCategoryResponse) XXX_Unmarshal ¶
func (m *UpdateCategoryResponse) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.