recipe

package
v0.0.0-...-6c8972c Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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 RegisterRecipeServiceServer

func RegisterRecipeServiceServer(s *grpc.Server, srv RecipeServiceServer)

Types

type CreateRecipeRequest

type CreateRecipeRequest struct {
	Title                string               `protobuf:"bytes,1,opt,name=Title,proto3" json:"Title,omitempty"`
	Ingredrient          string               `protobuf:"bytes,2,opt,name=Ingredrient,proto3" json:"Ingredrient,omitempty"`
	Image                string               `protobuf:"bytes,3,opt,name=Image,proto3" json:"Image,omitempty"`
	Description          string               `protobuf:"bytes,4,opt,name=Description,proto3" json:"Description,omitempty"`
	UserID               string               `protobuf:"bytes,5,opt,name=UserID,proto3" json:"UserID,omitempty"`
	AuthorSocialLink     string               `protobuf:"bytes,6,opt,name=AuthorSocialLink,proto3" json:"AuthorSocialLink,omitempty"`
	ReadCount            int64                `protobuf:"varint,7,opt,name=ReadCount,proto3" json:"ReadCount,omitempty"`
	ServingAmount        int64                `protobuf:"varint,8,opt,name=ServingAmount,proto3" json:"ServingAmount,omitempty"`
	CookingTime          *timestamp.Timestamp `protobuf:"bytes,9,opt,name=CookingTime,proto3" json:"CookingTime,omitempty"`
	IsUsed               bool                 `protobuf:"varint,10,opt,name=IsUsed,proto3" json:"IsUsed,omitempty"`
	Status               Status               `protobuf:"varint,11,opt,name=Status,proto3,enum=recipe.Status" json:"Status,omitempty"`
	CreatedAt            *timestamp.Timestamp `protobuf:"bytes,12,opt,name=CreatedAt,proto3" json:"CreatedAt,omitempty"`
	CreatedBy            string               `protobuf:"bytes,13,opt,name=CreatedBy,proto3" json:"CreatedBy,omitempty"`
	UpdatedAt            *timestamp.Timestamp `protobuf:"bytes,14,opt,name=UpdatedAt,proto3" json:"UpdatedAt,omitempty"`
	UpdatedBy            string               `protobuf:"bytes,15,opt,name=UpdatedBy,proto3" json:"UpdatedBy,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

func (*CreateRecipeRequest) Descriptor

func (*CreateRecipeRequest) Descriptor() ([]byte, []int)
func (m *CreateRecipeRequest) GetAuthorSocialLink() string

func (*CreateRecipeRequest) GetCookingTime

func (m *CreateRecipeRequest) GetCookingTime() *timestamp.Timestamp

func (*CreateRecipeRequest) GetCreatedAt

func (m *CreateRecipeRequest) GetCreatedAt() *timestamp.Timestamp

func (*CreateRecipeRequest) GetCreatedBy

func (m *CreateRecipeRequest) GetCreatedBy() string

func (*CreateRecipeRequest) GetDescription

func (m *CreateRecipeRequest) GetDescription() string

func (*CreateRecipeRequest) GetImage

func (m *CreateRecipeRequest) GetImage() string

func (*CreateRecipeRequest) GetIngredrient

func (m *CreateRecipeRequest) GetIngredrient() string

func (*CreateRecipeRequest) GetIsUsed

func (m *CreateRecipeRequest) GetIsUsed() bool

func (*CreateRecipeRequest) GetReadCount

func (m *CreateRecipeRequest) GetReadCount() int64

func (*CreateRecipeRequest) GetServingAmount

func (m *CreateRecipeRequest) GetServingAmount() int64

func (*CreateRecipeRequest) GetStatus

func (m *CreateRecipeRequest) GetStatus() Status

func (*CreateRecipeRequest) GetTitle

func (m *CreateRecipeRequest) GetTitle() string

func (*CreateRecipeRequest) GetUpdatedAt

func (m *CreateRecipeRequest) GetUpdatedAt() *timestamp.Timestamp

func (*CreateRecipeRequest) GetUpdatedBy

func (m *CreateRecipeRequest) GetUpdatedBy() string

func (*CreateRecipeRequest) GetUserID

func (m *CreateRecipeRequest) GetUserID() string

func (*CreateRecipeRequest) ProtoMessage

func (*CreateRecipeRequest) ProtoMessage()

func (*CreateRecipeRequest) Reset

func (m *CreateRecipeRequest) Reset()

func (*CreateRecipeRequest) String

func (m *CreateRecipeRequest) String() string

func (*CreateRecipeRequest) XXX_DiscardUnknown

func (m *CreateRecipeRequest) XXX_DiscardUnknown()

func (*CreateRecipeRequest) XXX_Marshal

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

func (*CreateRecipeRequest) XXX_Merge

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

func (*CreateRecipeRequest) XXX_Size

func (m *CreateRecipeRequest) XXX_Size() int

func (*CreateRecipeRequest) XXX_Unmarshal

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

type CreateRecipeResponse

type CreateRecipeResponse 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 (*CreateRecipeResponse) Descriptor

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

func (*CreateRecipeResponse) GetID

func (m *CreateRecipeResponse) GetID() string

func (*CreateRecipeResponse) ProtoMessage

func (*CreateRecipeResponse) ProtoMessage()

func (*CreateRecipeResponse) Reset

func (m *CreateRecipeResponse) Reset()

func (*CreateRecipeResponse) String

func (m *CreateRecipeResponse) String() string

func (*CreateRecipeResponse) XXX_DiscardUnknown

func (m *CreateRecipeResponse) XXX_DiscardUnknown()

func (*CreateRecipeResponse) XXX_Marshal

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

func (*CreateRecipeResponse) XXX_Merge

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

func (*CreateRecipeResponse) XXX_Size

func (m *CreateRecipeResponse) XXX_Size() int

func (*CreateRecipeResponse) XXX_Unmarshal

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

type DeleteRecipeRequest

type DeleteRecipeRequest 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 (*DeleteRecipeRequest) Descriptor

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

func (*DeleteRecipeRequest) GetDeletedBy

func (m *DeleteRecipeRequest) GetDeletedBy() string

func (*DeleteRecipeRequest) GetID

func (m *DeleteRecipeRequest) GetID() string

func (*DeleteRecipeRequest) ProtoMessage

func (*DeleteRecipeRequest) ProtoMessage()

func (*DeleteRecipeRequest) Reset

func (m *DeleteRecipeRequest) Reset()

func (*DeleteRecipeRequest) String

func (m *DeleteRecipeRequest) String() string

func (*DeleteRecipeRequest) XXX_DiscardUnknown

func (m *DeleteRecipeRequest) XXX_DiscardUnknown()

func (*DeleteRecipeRequest) XXX_Marshal

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

func (*DeleteRecipeRequest) XXX_Merge

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

func (*DeleteRecipeRequest) XXX_Size

func (m *DeleteRecipeRequest) XXX_Size() int

func (*DeleteRecipeRequest) XXX_Unmarshal

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

type GetRecipeRequest

type GetRecipeRequest 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 (*GetRecipeRequest) Descriptor

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

func (*GetRecipeRequest) GetID

func (m *GetRecipeRequest) GetID() string

func (*GetRecipeRequest) ProtoMessage

func (*GetRecipeRequest) ProtoMessage()

func (*GetRecipeRequest) Reset

func (m *GetRecipeRequest) Reset()

func (*GetRecipeRequest) String

func (m *GetRecipeRequest) String() string

func (*GetRecipeRequest) XXX_DiscardUnknown

func (m *GetRecipeRequest) XXX_DiscardUnknown()

func (*GetRecipeRequest) XXX_Marshal

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

func (*GetRecipeRequest) XXX_Merge

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

func (*GetRecipeRequest) XXX_Size

func (m *GetRecipeRequest) XXX_Size() int

func (*GetRecipeRequest) XXX_Unmarshal

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

type GetRecipeResponse

type GetRecipeResponse struct {
	ID                   string               `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
	Title                string               `protobuf:"bytes,2,opt,name=Title,proto3" json:"Title,omitempty"`
	Ingredrient          string               `protobuf:"bytes,3,opt,name=Ingredrient,proto3" json:"Ingredrient,omitempty"`
	Image                string               `protobuf:"bytes,4,opt,name=Image,proto3" json:"Image,omitempty"`
	Description          string               `protobuf:"bytes,5,opt,name=Description,proto3" json:"Description,omitempty"`
	UserID               string               `protobuf:"bytes,6,opt,name=UserID,proto3" json:"UserID,omitempty"`
	AuthorSocialLink     string               `protobuf:"bytes,7,opt,name=AuthorSocialLink,proto3" json:"AuthorSocialLink,omitempty"`
	ReadCount            int64                `protobuf:"varint,8,opt,name=ReadCount,proto3" json:"ReadCount,omitempty"`
	ServingAmount        int64                `protobuf:"varint,9,opt,name=ServingAmount,proto3" json:"ServingAmount,omitempty"`
	CookingTime          *timestamp.Timestamp `protobuf:"bytes,10,opt,name=CookingTime,proto3" json:"CookingTime,omitempty"`
	IsUsed               bool                 `protobuf:"varint,11,opt,name=IsUsed,proto3" json:"IsUsed,omitempty"`
	Status               Status               `protobuf:"varint,12,opt,name=Status,proto3,enum=recipe.Status" json:"Status,omitempty"`
	CreatedAt            *timestamp.Timestamp `protobuf:"bytes,13,opt,name=CreatedAt,proto3" json:"CreatedAt,omitempty"`
	CreatedBy            string               `protobuf:"bytes,14,opt,name=CreatedBy,proto3" json:"CreatedBy,omitempty"`
	UpdatedAt            *timestamp.Timestamp `protobuf:"bytes,15,opt,name=UpdatedAt,proto3" json:"UpdatedAt,omitempty"`
	UpdatedBy            string               `protobuf:"bytes,16,opt,name=UpdatedBy,proto3" json:"UpdatedBy,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

func (*GetRecipeResponse) Descriptor

func (*GetRecipeResponse) Descriptor() ([]byte, []int)
func (m *GetRecipeResponse) GetAuthorSocialLink() string

func (*GetRecipeResponse) GetCookingTime

func (m *GetRecipeResponse) GetCookingTime() *timestamp.Timestamp

func (*GetRecipeResponse) GetCreatedAt

func (m *GetRecipeResponse) GetCreatedAt() *timestamp.Timestamp

func (*GetRecipeResponse) GetCreatedBy

func (m *GetRecipeResponse) GetCreatedBy() string

func (*GetRecipeResponse) GetDescription

func (m *GetRecipeResponse) GetDescription() string

func (*GetRecipeResponse) GetID

func (m *GetRecipeResponse) GetID() string

func (*GetRecipeResponse) GetImage

func (m *GetRecipeResponse) GetImage() string

func (*GetRecipeResponse) GetIngredrient

func (m *GetRecipeResponse) GetIngredrient() string

func (*GetRecipeResponse) GetIsUsed

func (m *GetRecipeResponse) GetIsUsed() bool

func (*GetRecipeResponse) GetReadCount

func (m *GetRecipeResponse) GetReadCount() int64

func (*GetRecipeResponse) GetServingAmount

func (m *GetRecipeResponse) GetServingAmount() int64

func (*GetRecipeResponse) GetStatus

func (m *GetRecipeResponse) GetStatus() Status

func (*GetRecipeResponse) GetTitle

func (m *GetRecipeResponse) GetTitle() string

func (*GetRecipeResponse) GetUpdatedAt

func (m *GetRecipeResponse) GetUpdatedAt() *timestamp.Timestamp

func (*GetRecipeResponse) GetUpdatedBy

func (m *GetRecipeResponse) GetUpdatedBy() string

func (*GetRecipeResponse) GetUserID

func (m *GetRecipeResponse) GetUserID() string

func (*GetRecipeResponse) ProtoMessage

func (*GetRecipeResponse) ProtoMessage()

func (*GetRecipeResponse) Reset

func (m *GetRecipeResponse) Reset()

func (*GetRecipeResponse) String

func (m *GetRecipeResponse) String() string

func (*GetRecipeResponse) XXX_DiscardUnknown

func (m *GetRecipeResponse) XXX_DiscardUnknown()

func (*GetRecipeResponse) XXX_Marshal

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

func (*GetRecipeResponse) XXX_Merge

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

func (*GetRecipeResponse) XXX_Size

func (m *GetRecipeResponse) XXX_Size() int

func (*GetRecipeResponse) XXX_Unmarshal

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

type ListRecipeRequest

type ListRecipeRequest struct {
	SortBy               SortBy   `protobuf:"varint,1,opt,name=SortBy,proto3,enum=recipe.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=recipe.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 (*ListRecipeRequest) Descriptor

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

func (*ListRecipeRequest) GetEndDate

func (m *ListRecipeRequest) GetEndDate() string

func (*ListRecipeRequest) GetLimit

func (m *ListRecipeRequest) GetLimit() int32

func (*ListRecipeRequest) GetOffset

func (m *ListRecipeRequest) GetOffset() int32

func (*ListRecipeRequest) GetSearchTerm

func (m *ListRecipeRequest) GetSearchTerm() string

func (*ListRecipeRequest) GetSortBy

func (m *ListRecipeRequest) GetSortBy() SortBy

func (*ListRecipeRequest) GetSortByColumn

func (m *ListRecipeRequest) GetSortByColumn() string

func (*ListRecipeRequest) GetStartDate

func (m *ListRecipeRequest) GetStartDate() string

func (*ListRecipeRequest) GetStatus

func (m *ListRecipeRequest) GetStatus() Status

func (*ListRecipeRequest) ProtoMessage

func (*ListRecipeRequest) ProtoMessage()

func (*ListRecipeRequest) Reset

func (m *ListRecipeRequest) Reset()

func (*ListRecipeRequest) String

func (m *ListRecipeRequest) String() string

func (*ListRecipeRequest) XXX_DiscardUnknown

func (m *ListRecipeRequest) XXX_DiscardUnknown()

func (*ListRecipeRequest) XXX_Marshal

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

func (*ListRecipeRequest) XXX_Merge

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

func (*ListRecipeRequest) XXX_Size

func (m *ListRecipeRequest) XXX_Size() int

func (*ListRecipeRequest) XXX_Unmarshal

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

type ListRecipeResponse

type ListRecipeResponse struct {
	Recipes              []*Recipe `protobuf:"bytes,1,rep,name=Recipes,proto3" json:"Recipes,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 (*ListRecipeResponse) Descriptor

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

func (*ListRecipeResponse) GetRecipes

func (m *ListRecipeResponse) GetRecipes() []*Recipe

func (*ListRecipeResponse) GetTotal

func (m *ListRecipeResponse) GetTotal() int32

func (*ListRecipeResponse) ProtoMessage

func (*ListRecipeResponse) ProtoMessage()

func (*ListRecipeResponse) Reset

func (m *ListRecipeResponse) Reset()

func (*ListRecipeResponse) String

func (m *ListRecipeResponse) String() string

func (*ListRecipeResponse) XXX_DiscardUnknown

func (m *ListRecipeResponse) XXX_DiscardUnknown()

func (*ListRecipeResponse) XXX_Marshal

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

func (*ListRecipeResponse) XXX_Merge

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

func (*ListRecipeResponse) XXX_Size

func (m *ListRecipeResponse) XXX_Size() int

func (*ListRecipeResponse) XXX_Unmarshal

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

type Recipe

type Recipe struct {
	ID                   string               `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
	Title                string               `protobuf:"bytes,2,opt,name=Title,proto3" json:"Title,omitempty"`
	Ingredrient          string               `protobuf:"bytes,3,opt,name=Ingredrient,proto3" json:"Ingredrient,omitempty"`
	Image                string               `protobuf:"bytes,4,opt,name=Image,proto3" json:"Image,omitempty"`
	Description          string               `protobuf:"bytes,5,opt,name=Description,proto3" json:"Description,omitempty"`
	UserID               string               `protobuf:"bytes,6,opt,name=UserID,proto3" json:"UserID,omitempty"`
	AuthorSocialLink     string               `protobuf:"bytes,7,opt,name=AuthorSocialLink,proto3" json:"AuthorSocialLink,omitempty"`
	ReadCount            int64                `protobuf:"varint,8,opt,name=ReadCount,proto3" json:"ReadCount,omitempty"`
	ServingAmount        int64                `protobuf:"varint,9,opt,name=ServingAmount,proto3" json:"ServingAmount,omitempty"`
	CookingTime          *timestamp.Timestamp `protobuf:"bytes,10,opt,name=CookingTime,proto3" json:"CookingTime,omitempty"`
	IsUsed               bool                 `protobuf:"varint,11,opt,name=IsUsed,proto3" json:"IsUsed,omitempty"`
	Status               Status               `protobuf:"varint,12,opt,name=Status,proto3,enum=recipe.Status" json:"Status,omitempty"`
	CreatedAt            *timestamp.Timestamp `protobuf:"bytes,13,opt,name=CreatedAt,proto3" json:"CreatedAt,omitempty"`
	CreatedBy            string               `protobuf:"bytes,14,opt,name=CreatedBy,proto3" json:"CreatedBy,omitempty"`
	UpdatedAt            *timestamp.Timestamp `protobuf:"bytes,15,opt,name=UpdatedAt,proto3" json:"UpdatedAt,omitempty"`
	UpdatedBy            string               `protobuf:"bytes,16,opt,name=UpdatedBy,proto3" json:"UpdatedBy,omitempty"`
	DeletedAt            *timestamp.Timestamp `protobuf:"bytes,17,opt,name=DeletedAt,proto3" json:"DeletedAt,omitempty"`
	DeletedBy            string               `protobuf:"bytes,18,opt,name=DeletedBy,proto3" json:"DeletedBy,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

func (*Recipe) Descriptor

func (*Recipe) Descriptor() ([]byte, []int)
func (m *Recipe) GetAuthorSocialLink() string

func (*Recipe) GetCookingTime

func (m *Recipe) GetCookingTime() *timestamp.Timestamp

func (*Recipe) GetCreatedAt

func (m *Recipe) GetCreatedAt() *timestamp.Timestamp

func (*Recipe) GetCreatedBy

func (m *Recipe) GetCreatedBy() string

func (*Recipe) GetDeletedAt

func (m *Recipe) GetDeletedAt() *timestamp.Timestamp

func (*Recipe) GetDeletedBy

func (m *Recipe) GetDeletedBy() string

func (*Recipe) GetDescription

func (m *Recipe) GetDescription() string

func (*Recipe) GetID

func (m *Recipe) GetID() string

func (*Recipe) GetImage

func (m *Recipe) GetImage() string

func (*Recipe) GetIngredrient

func (m *Recipe) GetIngredrient() string

func (*Recipe) GetIsUsed

func (m *Recipe) GetIsUsed() bool

func (*Recipe) GetReadCount

func (m *Recipe) GetReadCount() int64

func (*Recipe) GetServingAmount

func (m *Recipe) GetServingAmount() int64

func (*Recipe) GetStatus

func (m *Recipe) GetStatus() Status

func (*Recipe) GetTitle

func (m *Recipe) GetTitle() string

func (*Recipe) GetUpdatedAt

func (m *Recipe) GetUpdatedAt() *timestamp.Timestamp

func (*Recipe) GetUpdatedBy

func (m *Recipe) GetUpdatedBy() string

func (*Recipe) GetUserID

func (m *Recipe) GetUserID() string

func (*Recipe) ProtoMessage

func (*Recipe) ProtoMessage()

func (*Recipe) Reset

func (m *Recipe) Reset()

func (*Recipe) String

func (m *Recipe) String() string

func (*Recipe) XXX_DiscardUnknown

func (m *Recipe) XXX_DiscardUnknown()

func (*Recipe) XXX_Marshal

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

func (*Recipe) XXX_Merge

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

func (*Recipe) XXX_Size

func (m *Recipe) XXX_Size() int

func (*Recipe) XXX_Unmarshal

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

type RecipeServiceClient

type RecipeServiceClient interface {
	CreateRecipe(ctx context.Context, in *CreateRecipeRequest, opts ...grpc.CallOption) (*CreateRecipeResponse, error)
	GetRecipe(ctx context.Context, in *GetRecipeRequest, opts ...grpc.CallOption) (*GetRecipeResponse, error)
	UpdateRecipe(ctx context.Context, in *UpdateRecipeRequest, opts ...grpc.CallOption) (*UpdateRecipeResponse, error)
	ListRecipe(ctx context.Context, in *ListRecipeRequest, opts ...grpc.CallOption) (*ListRecipeResponse, error)
	DeleteRecipe(ctx context.Context, in *DeleteRecipeRequest, opts ...grpc.CallOption) (*empty.Empty, error)
}

RecipeServiceClient is the client API for RecipeService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type RecipeServiceServer

RecipeServiceServer is the server API for RecipeService service.

type SortBy

type SortBy int32
const (
	SortBy_DESC SortBy = 0
	SortBy_ASC  SortBy = 1
)

func (SortBy) EnumDescriptor

func (SortBy) EnumDescriptor() ([]byte, []int)

func (SortBy) String

func (x SortBy) String() string

type Status

type Status int32
const (
	Status_Unknown  Status = 0
	Status_Active   Status = 1
	Status_Inactive Status = 2
)

func (Status) EnumDescriptor

func (Status) EnumDescriptor() ([]byte, []int)

func (Status) String

func (x Status) String() string

type UnimplementedRecipeServiceServer

type UnimplementedRecipeServiceServer struct {
}

UnimplementedRecipeServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedRecipeServiceServer) CreateRecipe

func (*UnimplementedRecipeServiceServer) DeleteRecipe

func (*UnimplementedRecipeServiceServer) GetRecipe

func (*UnimplementedRecipeServiceServer) ListRecipe

func (*UnimplementedRecipeServiceServer) UpdateRecipe

type UpdateRecipeRequest

type UpdateRecipeRequest struct {
	ID                   string               `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
	Title                string               `protobuf:"bytes,2,opt,name=Title,proto3" json:"Title,omitempty"`
	Ingredrient          string               `protobuf:"bytes,3,opt,name=Ingredrient,proto3" json:"Ingredrient,omitempty"`
	Image                string               `protobuf:"bytes,4,opt,name=Image,proto3" json:"Image,omitempty"`
	Description          string               `protobuf:"bytes,5,opt,name=Description,proto3" json:"Description,omitempty"`
	UserID               string               `protobuf:"bytes,6,opt,name=UserID,proto3" json:"UserID,omitempty"`
	AuthorSocialLink     string               `protobuf:"bytes,7,opt,name=AuthorSocialLink,proto3" json:"AuthorSocialLink,omitempty"`
	ReadCount            int64                `protobuf:"varint,8,opt,name=ReadCount,proto3" json:"ReadCount,omitempty"`
	ServingAmount        int64                `protobuf:"varint,9,opt,name=ServingAmount,proto3" json:"ServingAmount,omitempty"`
	CookingTime          *timestamp.Timestamp `protobuf:"bytes,10,opt,name=CookingTime,proto3" json:"CookingTime,omitempty"`
	IsUsed               bool                 `protobuf:"varint,11,opt,name=IsUsed,proto3" json:"IsUsed,omitempty"`
	Status               Status               `protobuf:"varint,12,opt,name=Status,proto3,enum=recipe.Status" json:"Status,omitempty"`
	UpdatedAt            *timestamp.Timestamp `protobuf:"bytes,13,opt,name=UpdatedAt,proto3" json:"UpdatedAt,omitempty"`
	UpdatedBy            string               `protobuf:"bytes,14,opt,name=UpdatedBy,proto3" json:"UpdatedBy,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

func (*UpdateRecipeRequest) Descriptor

func (*UpdateRecipeRequest) Descriptor() ([]byte, []int)
func (m *UpdateRecipeRequest) GetAuthorSocialLink() string

func (*UpdateRecipeRequest) GetCookingTime

func (m *UpdateRecipeRequest) GetCookingTime() *timestamp.Timestamp

func (*UpdateRecipeRequest) GetDescription

func (m *UpdateRecipeRequest) GetDescription() string

func (*UpdateRecipeRequest) GetID

func (m *UpdateRecipeRequest) GetID() string

func (*UpdateRecipeRequest) GetImage

func (m *UpdateRecipeRequest) GetImage() string

func (*UpdateRecipeRequest) GetIngredrient

func (m *UpdateRecipeRequest) GetIngredrient() string

func (*UpdateRecipeRequest) GetIsUsed

func (m *UpdateRecipeRequest) GetIsUsed() bool

func (*UpdateRecipeRequest) GetReadCount

func (m *UpdateRecipeRequest) GetReadCount() int64

func (*UpdateRecipeRequest) GetServingAmount

func (m *UpdateRecipeRequest) GetServingAmount() int64

func (*UpdateRecipeRequest) GetStatus

func (m *UpdateRecipeRequest) GetStatus() Status

func (*UpdateRecipeRequest) GetTitle

func (m *UpdateRecipeRequest) GetTitle() string

func (*UpdateRecipeRequest) GetUpdatedAt

func (m *UpdateRecipeRequest) GetUpdatedAt() *timestamp.Timestamp

func (*UpdateRecipeRequest) GetUpdatedBy

func (m *UpdateRecipeRequest) GetUpdatedBy() string

func (*UpdateRecipeRequest) GetUserID

func (m *UpdateRecipeRequest) GetUserID() string

func (*UpdateRecipeRequest) ProtoMessage

func (*UpdateRecipeRequest) ProtoMessage()

func (*UpdateRecipeRequest) Reset

func (m *UpdateRecipeRequest) Reset()

func (*UpdateRecipeRequest) String

func (m *UpdateRecipeRequest) String() string

func (*UpdateRecipeRequest) XXX_DiscardUnknown

func (m *UpdateRecipeRequest) XXX_DiscardUnknown()

func (*UpdateRecipeRequest) XXX_Marshal

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

func (*UpdateRecipeRequest) XXX_Merge

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

func (*UpdateRecipeRequest) XXX_Size

func (m *UpdateRecipeRequest) XXX_Size() int

func (*UpdateRecipeRequest) XXX_Unmarshal

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

type UpdateRecipeResponse

type UpdateRecipeResponse struct {
	ID                   string               `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
	Title                string               `protobuf:"bytes,2,opt,name=Title,proto3" json:"Title,omitempty"`
	Ingredrient          string               `protobuf:"bytes,3,opt,name=Ingredrient,proto3" json:"Ingredrient,omitempty"`
	Image                string               `protobuf:"bytes,4,opt,name=Image,proto3" json:"Image,omitempty"`
	Description          string               `protobuf:"bytes,5,opt,name=Description,proto3" json:"Description,omitempty"`
	UserID               string               `protobuf:"bytes,6,opt,name=UserID,proto3" json:"UserID,omitempty"`
	AuthorSocialLink     string               `protobuf:"bytes,7,opt,name=AuthorSocialLink,proto3" json:"AuthorSocialLink,omitempty"`
	ReadCount            int64                `protobuf:"varint,8,opt,name=ReadCount,proto3" json:"ReadCount,omitempty"`
	ServingAmount        int64                `protobuf:"varint,9,opt,name=ServingAmount,proto3" json:"ServingAmount,omitempty"`
	CookingTime          *timestamp.Timestamp `protobuf:"bytes,10,opt,name=CookingTime,proto3" json:"CookingTime,omitempty"`
	IsUsed               bool                 `protobuf:"varint,11,opt,name=IsUsed,proto3" json:"IsUsed,omitempty"`
	Status               Status               `protobuf:"varint,12,opt,name=Status,proto3,enum=recipe.Status" json:"Status,omitempty"`
	UpdatedAt            *timestamp.Timestamp `protobuf:"bytes,13,opt,name=UpdatedAt,proto3" json:"UpdatedAt,omitempty"`
	UpdatedBy            string               `protobuf:"bytes,14,opt,name=UpdatedBy,proto3" json:"UpdatedBy,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

func (*UpdateRecipeResponse) Descriptor

func (*UpdateRecipeResponse) Descriptor() ([]byte, []int)
func (m *UpdateRecipeResponse) GetAuthorSocialLink() string

func (*UpdateRecipeResponse) GetCookingTime

func (m *UpdateRecipeResponse) GetCookingTime() *timestamp.Timestamp

func (*UpdateRecipeResponse) GetDescription

func (m *UpdateRecipeResponse) GetDescription() string

func (*UpdateRecipeResponse) GetID

func (m *UpdateRecipeResponse) GetID() string

func (*UpdateRecipeResponse) GetImage

func (m *UpdateRecipeResponse) GetImage() string

func (*UpdateRecipeResponse) GetIngredrient

func (m *UpdateRecipeResponse) GetIngredrient() string

func (*UpdateRecipeResponse) GetIsUsed

func (m *UpdateRecipeResponse) GetIsUsed() bool

func (*UpdateRecipeResponse) GetReadCount

func (m *UpdateRecipeResponse) GetReadCount() int64

func (*UpdateRecipeResponse) GetServingAmount

func (m *UpdateRecipeResponse) GetServingAmount() int64

func (*UpdateRecipeResponse) GetStatus

func (m *UpdateRecipeResponse) GetStatus() Status

func (*UpdateRecipeResponse) GetTitle

func (m *UpdateRecipeResponse) GetTitle() string

func (*UpdateRecipeResponse) GetUpdatedAt

func (m *UpdateRecipeResponse) GetUpdatedAt() *timestamp.Timestamp

func (*UpdateRecipeResponse) GetUpdatedBy

func (m *UpdateRecipeResponse) GetUpdatedBy() string

func (*UpdateRecipeResponse) GetUserID

func (m *UpdateRecipeResponse) GetUserID() string

func (*UpdateRecipeResponse) ProtoMessage

func (*UpdateRecipeResponse) ProtoMessage()

func (*UpdateRecipeResponse) Reset

func (m *UpdateRecipeResponse) Reset()

func (*UpdateRecipeResponse) String

func (m *UpdateRecipeResponse) String() string

func (*UpdateRecipeResponse) XXX_DiscardUnknown

func (m *UpdateRecipeResponse) XXX_DiscardUnknown()

func (*UpdateRecipeResponse) XXX_Marshal

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

func (*UpdateRecipeResponse) XXX_Merge

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

func (*UpdateRecipeResponse) XXX_Size

func (m *UpdateRecipeResponse) XXX_Size() int

func (*UpdateRecipeResponse) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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