Documentation ¶
Overview ¶
Package content is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- func RegisterContentServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterContentServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ContentServiceClient) error
- func RegisterContentServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterContentServiceServer(s *grpc.Server, srv ContentServiceServer)
- type Content
- func (*Content) Descriptor() ([]byte, []int)
- func (m *Content) GetData() *ContentData
- func (m *Content) GetLinks() *jsonapi.Links
- func (*Content) ProtoMessage()
- func (m *Content) Reset()
- func (m *Content) String() string
- func (this *Content) Validate() error
- func (m *Content) XXX_DiscardUnknown()
- func (m *Content) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Content) XXX_Merge(src proto.Message)
- func (m *Content) XXX_Size() int
- func (m *Content) XXX_Unmarshal(b []byte) error
- type ContentAttributes
- func (*ContentAttributes) Descriptor() ([]byte, []int)
- func (m *ContentAttributes) GetContent() string
- func (m *ContentAttributes) GetCreatedAt() *timestamp.Timestamp
- func (m *ContentAttributes) GetCreatedBy() int64
- func (m *ContentAttributes) GetName() string
- func (m *ContentAttributes) GetNamespace() string
- func (m *ContentAttributes) GetSlug() string
- func (m *ContentAttributes) GetUpdatedAt() *timestamp.Timestamp
- func (m *ContentAttributes) GetUpdatedBy() int64
- func (*ContentAttributes) ProtoMessage()
- func (m *ContentAttributes) Reset()
- func (m *ContentAttributes) String() string
- func (this *ContentAttributes) Validate() error
- func (m *ContentAttributes) XXX_DiscardUnknown()
- func (m *ContentAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ContentAttributes) XXX_Merge(src proto.Message)
- func (m *ContentAttributes) XXX_Size() int
- func (m *ContentAttributes) XXX_Unmarshal(b []byte) error
- type ContentData
- func (*ContentData) Descriptor() ([]byte, []int)
- func (m *ContentData) GetAttributes() *ContentAttributes
- func (m *ContentData) GetId() int64
- func (m *ContentData) GetLinks() *jsonapi.Links
- func (m *ContentData) GetType() string
- func (*ContentData) ProtoMessage()
- func (m *ContentData) Reset()
- func (m *ContentData) String() string
- func (this *ContentData) Validate() error
- func (m *ContentData) XXX_DiscardUnknown()
- func (m *ContentData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ContentData) XXX_Merge(src proto.Message)
- func (m *ContentData) XXX_Size() int
- func (m *ContentData) XXX_Unmarshal(b []byte) error
- type ContentIdRequest
- func (*ContentIdRequest) Descriptor() ([]byte, []int)
- func (m *ContentIdRequest) GetId() int64
- func (*ContentIdRequest) ProtoMessage()
- func (m *ContentIdRequest) Reset()
- func (m *ContentIdRequest) String() string
- func (this *ContentIdRequest) Validate() error
- func (m *ContentIdRequest) XXX_DiscardUnknown()
- func (m *ContentIdRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ContentIdRequest) XXX_Merge(src proto.Message)
- func (m *ContentIdRequest) XXX_Size() int
- func (m *ContentIdRequest) XXX_Unmarshal(b []byte) error
- type ContentRequest
- func (*ContentRequest) Descriptor() ([]byte, []int)
- func (m *ContentRequest) GetSlug() string
- func (*ContentRequest) ProtoMessage()
- func (m *ContentRequest) Reset()
- func (m *ContentRequest) String() string
- func (this *ContentRequest) Validate() error
- func (m *ContentRequest) XXX_DiscardUnknown()
- func (m *ContentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ContentRequest) XXX_Merge(src proto.Message)
- func (m *ContentRequest) XXX_Size() int
- func (m *ContentRequest) XXX_Unmarshal(b []byte) error
- type ContentServiceClient
- type ContentServiceServer
- type ExistingContentAttributes
- func (*ExistingContentAttributes) Descriptor() ([]byte, []int)
- func (m *ExistingContentAttributes) GetContent() string
- func (m *ExistingContentAttributes) GetUpdatedBy() int64
- func (*ExistingContentAttributes) ProtoMessage()
- func (m *ExistingContentAttributes) Reset()
- func (m *ExistingContentAttributes) String() string
- func (this *ExistingContentAttributes) Validate() error
- func (m *ExistingContentAttributes) XXX_DiscardUnknown()
- func (m *ExistingContentAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ExistingContentAttributes) XXX_Merge(src proto.Message)
- func (m *ExistingContentAttributes) XXX_Size() int
- func (m *ExistingContentAttributes) XXX_Unmarshal(b []byte) error
- type NewContentAttributes
- func (*NewContentAttributes) Descriptor() ([]byte, []int)
- func (m *NewContentAttributes) GetContent() string
- func (m *NewContentAttributes) GetCreatedBy() int64
- func (m *NewContentAttributes) GetName() string
- func (m *NewContentAttributes) GetNamespace() string
- func (*NewContentAttributes) ProtoMessage()
- func (m *NewContentAttributes) Reset()
- func (m *NewContentAttributes) String() string
- func (this *NewContentAttributes) Validate() error
- func (m *NewContentAttributes) XXX_DiscardUnknown()
- func (m *NewContentAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *NewContentAttributes) XXX_Merge(src proto.Message)
- func (m *NewContentAttributes) XXX_Size() int
- func (m *NewContentAttributes) XXX_Unmarshal(b []byte) error
- type StoreContentRequest
- func (*StoreContentRequest) Descriptor() ([]byte, []int)
- func (m *StoreContentRequest) GetData() *StoreContentRequest_Data
- func (*StoreContentRequest) ProtoMessage()
- func (m *StoreContentRequest) Reset()
- func (m *StoreContentRequest) String() string
- func (this *StoreContentRequest) Validate() error
- func (m *StoreContentRequest) XXX_DiscardUnknown()
- func (m *StoreContentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *StoreContentRequest) XXX_Merge(src proto.Message)
- func (m *StoreContentRequest) XXX_Size() int
- func (m *StoreContentRequest) XXX_Unmarshal(b []byte) error
- type StoreContentRequest_Data
- func (*StoreContentRequest_Data) Descriptor() ([]byte, []int)
- func (m *StoreContentRequest_Data) GetAttributes() *NewContentAttributes
- func (m *StoreContentRequest_Data) GetType() string
- func (*StoreContentRequest_Data) ProtoMessage()
- func (m *StoreContentRequest_Data) Reset()
- func (m *StoreContentRequest_Data) String() string
- func (this *StoreContentRequest_Data) Validate() error
- func (m *StoreContentRequest_Data) XXX_DiscardUnknown()
- func (m *StoreContentRequest_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *StoreContentRequest_Data) XXX_Merge(src proto.Message)
- func (m *StoreContentRequest_Data) XXX_Size() int
- func (m *StoreContentRequest_Data) XXX_Unmarshal(b []byte) error
- type UpdateContentRequest
- func (*UpdateContentRequest) Descriptor() ([]byte, []int)
- func (m *UpdateContentRequest) GetData() *UpdateContentRequest_Data
- func (m *UpdateContentRequest) GetId() int64
- func (m *UpdateContentRequest) GetUpdateMask() *field_mask.FieldMask
- func (*UpdateContentRequest) ProtoMessage()
- func (m *UpdateContentRequest) Reset()
- func (m *UpdateContentRequest) String() string
- func (this *UpdateContentRequest) Validate() error
- func (m *UpdateContentRequest) XXX_DiscardUnknown()
- func (m *UpdateContentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *UpdateContentRequest) XXX_Merge(src proto.Message)
- func (m *UpdateContentRequest) XXX_Size() int
- func (m *UpdateContentRequest) XXX_Unmarshal(b []byte) error
- type UpdateContentRequest_Data
- func (*UpdateContentRequest_Data) Descriptor() ([]byte, []int)
- func (m *UpdateContentRequest_Data) GetAttributes() *ExistingContentAttributes
- func (m *UpdateContentRequest_Data) GetId() int64
- func (m *UpdateContentRequest_Data) GetType() string
- func (*UpdateContentRequest_Data) ProtoMessage()
- func (m *UpdateContentRequest_Data) Reset()
- func (m *UpdateContentRequest_Data) String() string
- func (this *UpdateContentRequest_Data) Validate() error
- func (m *UpdateContentRequest_Data) XXX_DiscardUnknown()
- func (m *UpdateContentRequest_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *UpdateContentRequest_Data) XXX_Merge(src proto.Message)
- func (m *UpdateContentRequest_Data) XXX_Size() int
- func (m *UpdateContentRequest_Data) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterContentServiceHandler ¶
func RegisterContentServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterContentServiceHandler registers the http handlers for service ContentService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterContentServiceHandlerClient ¶
func RegisterContentServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ContentServiceClient) error
RegisterContentServiceHandlerClient registers the http handlers for service ContentService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ContentServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ContentServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ContentServiceClient" to call the correct interceptors.
func RegisterContentServiceHandlerFromEndpoint ¶
func RegisterContentServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterContentServiceHandlerFromEndpoint is same as RegisterContentServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterContentServiceServer ¶
func RegisterContentServiceServer(s *grpc.Server, srv ContentServiceServer)
Types ¶
type Content ¶
type Content struct { Data *ContentData `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` Links *jsonapi.Links `protobuf:"bytes,2,opt,name=links,proto3" json:"links,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Content) Descriptor ¶
func (*Content) GetData ¶
func (m *Content) GetData() *ContentData
func (*Content) ProtoMessage ¶
func (*Content) ProtoMessage()
func (*Content) XXX_DiscardUnknown ¶
func (m *Content) XXX_DiscardUnknown()
func (*Content) XXX_Marshal ¶
func (*Content) XXX_Unmarshal ¶
type ContentAttributes ¶
type ContentAttributes struct { // page name Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // page slug. Look here https://en.wikipedia.org/wiki/Semantic_URL#Slug to know about slug Slug string `protobuf:"bytes,2,opt,name=slug,proto3" json:"slug,omitempty"` // id of the user who created the content CreatedBy int64 `protobuf:"varint,3,opt,name=created_by,json=createdBy,proto3" json:"created_by,omitempty"` // id of the user who updated the content UpdatedBy int64 `protobuf:"varint,4,opt,name=updated_by,json=updatedBy,proto3" json:"updated_by,omitempty"` // Timestamp for creation and update CreatedAt *timestamp.Timestamp `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt *timestamp.Timestamp `protobuf:"bytes,6,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // serialized page content(for example serialized draft js object) Content string `protobuf:"bytes,7,opt,name=content,proto3" json:"content,omitempty"` // namespace for the page Namespace string `protobuf:"bytes,8,opt,name=namespace,proto3" json:"namespace,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Definition of various content fields
func (*ContentAttributes) Descriptor ¶
func (*ContentAttributes) Descriptor() ([]byte, []int)
func (*ContentAttributes) GetContent ¶
func (m *ContentAttributes) GetContent() string
func (*ContentAttributes) GetCreatedAt ¶
func (m *ContentAttributes) GetCreatedAt() *timestamp.Timestamp
func (*ContentAttributes) GetCreatedBy ¶
func (m *ContentAttributes) GetCreatedBy() int64
func (*ContentAttributes) GetName ¶
func (m *ContentAttributes) GetName() string
func (*ContentAttributes) GetNamespace ¶
func (m *ContentAttributes) GetNamespace() string
func (*ContentAttributes) GetSlug ¶
func (m *ContentAttributes) GetSlug() string
func (*ContentAttributes) GetUpdatedAt ¶
func (m *ContentAttributes) GetUpdatedAt() *timestamp.Timestamp
func (*ContentAttributes) GetUpdatedBy ¶
func (m *ContentAttributes) GetUpdatedBy() int64
func (*ContentAttributes) ProtoMessage ¶
func (*ContentAttributes) ProtoMessage()
func (*ContentAttributes) Reset ¶
func (m *ContentAttributes) Reset()
func (*ContentAttributes) String ¶
func (m *ContentAttributes) String() string
func (*ContentAttributes) Validate ¶
func (this *ContentAttributes) Validate() error
func (*ContentAttributes) XXX_DiscardUnknown ¶
func (m *ContentAttributes) XXX_DiscardUnknown()
func (*ContentAttributes) XXX_Marshal ¶
func (m *ContentAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ContentAttributes) XXX_Merge ¶
func (dst *ContentAttributes) XXX_Merge(src proto.Message)
func (*ContentAttributes) XXX_Size ¶
func (m *ContentAttributes) XXX_Size() int
func (*ContentAttributes) XXX_Unmarshal ¶
func (m *ContentAttributes) XXX_Unmarshal(b []byte) error
type ContentData ¶
type ContentData struct { // The resource name Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` // Unique id Id int64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` Attributes *ContentAttributes `protobuf:"bytes,3,opt,name=attributes,proto3" json:"attributes,omitempty"` Links *jsonapi.Links `protobuf:"bytes,4,opt,name=links,proto3" json:"links,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ContentData) Descriptor ¶
func (*ContentData) Descriptor() ([]byte, []int)
func (*ContentData) GetAttributes ¶
func (m *ContentData) GetAttributes() *ContentAttributes
func (*ContentData) GetId ¶
func (m *ContentData) GetId() int64
func (*ContentData) GetLinks ¶
func (m *ContentData) GetLinks() *jsonapi.Links
func (*ContentData) GetType ¶
func (m *ContentData) GetType() string
func (*ContentData) ProtoMessage ¶
func (*ContentData) ProtoMessage()
func (*ContentData) Reset ¶
func (m *ContentData) Reset()
func (*ContentData) String ¶
func (m *ContentData) String() string
func (*ContentData) Validate ¶
func (this *ContentData) Validate() error
func (*ContentData) XXX_DiscardUnknown ¶
func (m *ContentData) XXX_DiscardUnknown()
func (*ContentData) XXX_Marshal ¶
func (m *ContentData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ContentData) XXX_Merge ¶
func (dst *ContentData) XXX_Merge(src proto.Message)
func (*ContentData) XXX_Size ¶
func (m *ContentData) XXX_Size() int
func (*ContentData) XXX_Unmarshal ¶
func (m *ContentData) XXX_Unmarshal(b []byte) error
type ContentIdRequest ¶
type ContentIdRequest struct { // Unique id to identify content Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ContentIdRequest) Descriptor ¶
func (*ContentIdRequest) Descriptor() ([]byte, []int)
func (*ContentIdRequest) GetId ¶
func (m *ContentIdRequest) GetId() int64
func (*ContentIdRequest) ProtoMessage ¶
func (*ContentIdRequest) ProtoMessage()
func (*ContentIdRequest) Reset ¶
func (m *ContentIdRequest) Reset()
func (*ContentIdRequest) String ¶
func (m *ContentIdRequest) String() string
func (*ContentIdRequest) Validate ¶
func (this *ContentIdRequest) Validate() error
func (*ContentIdRequest) XXX_DiscardUnknown ¶
func (m *ContentIdRequest) XXX_DiscardUnknown()
func (*ContentIdRequest) XXX_Marshal ¶
func (m *ContentIdRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ContentIdRequest) XXX_Merge ¶
func (dst *ContentIdRequest) XXX_Merge(src proto.Message)
func (*ContentIdRequest) XXX_Size ¶
func (m *ContentIdRequest) XXX_Size() int
func (*ContentIdRequest) XXX_Unmarshal ¶
func (m *ContentIdRequest) XXX_Unmarshal(b []byte) error
type ContentRequest ¶
type ContentRequest struct { // Url slug // Look here https://en.wikipedia.org/wiki/Semantic_URL#Slug to know about slug // The slug name should be unique Slug string `protobuf:"bytes,1,opt,name=slug,proto3" json:"slug,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ContentRequest) Descriptor ¶
func (*ContentRequest) Descriptor() ([]byte, []int)
func (*ContentRequest) GetSlug ¶
func (m *ContentRequest) GetSlug() string
func (*ContentRequest) ProtoMessage ¶
func (*ContentRequest) ProtoMessage()
func (*ContentRequest) Reset ¶
func (m *ContentRequest) Reset()
func (*ContentRequest) String ¶
func (m *ContentRequest) String() string
func (*ContentRequest) Validate ¶
func (this *ContentRequest) Validate() error
func (*ContentRequest) XXX_DiscardUnknown ¶
func (m *ContentRequest) XXX_DiscardUnknown()
func (*ContentRequest) XXX_Marshal ¶
func (m *ContentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ContentRequest) XXX_Merge ¶
func (dst *ContentRequest) XXX_Merge(src proto.Message)
func (*ContentRequest) XXX_Size ¶
func (m *ContentRequest) XXX_Size() int
func (*ContentRequest) XXX_Unmarshal ¶
func (m *ContentRequest) XXX_Unmarshal(b []byte) error
type ContentServiceClient ¶
type ContentServiceClient interface { // Gets the content of specified page(slug) GetContentBySlug(ctx context.Context, in *ContentRequest, opts ...grpc.CallOption) (*Content, error) GetContent(ctx context.Context, in *ContentIdRequest, opts ...grpc.CallOption) (*Content, error) // Store the content of a new page(slug) StoreContent(ctx context.Context, in *StoreContentRequest, opts ...grpc.CallOption) (*Content, error) // Update the content of an existing page UpdateContent(ctx context.Context, in *UpdateContentRequest, opts ...grpc.CallOption) (*Content, error) // Delete an existing page along with its content DeleteContent(ctx context.Context, in *ContentIdRequest, opts ...grpc.CallOption) (*empty.Empty, error) // Basic health check that always return success Healthz(ctx context.Context, in *jsonapi.HealthzIdRequest, opts ...grpc.CallOption) (*empty.Empty, error) }
ContentServiceClient is the client API for ContentService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewContentServiceClient ¶
func NewContentServiceClient(cc *grpc.ClientConn) ContentServiceClient
type ContentServiceServer ¶
type ContentServiceServer interface { // Gets the content of specified page(slug) GetContentBySlug(context.Context, *ContentRequest) (*Content, error) GetContent(context.Context, *ContentIdRequest) (*Content, error) // Store the content of a new page(slug) StoreContent(context.Context, *StoreContentRequest) (*Content, error) // Update the content of an existing page UpdateContent(context.Context, *UpdateContentRequest) (*Content, error) // Delete an existing page along with its content DeleteContent(context.Context, *ContentIdRequest) (*empty.Empty, error) // Basic health check that always return success Healthz(context.Context, *jsonapi.HealthzIdRequest) (*empty.Empty, error) }
ContentServiceServer is the server API for ContentService service.
type ExistingContentAttributes ¶
type ExistingContentAttributes struct { // user id who is updating this content // The existence of user will be verified(not implemented yet) // using the `user` microservice backend. UpdatedBy int64 `protobuf:"varint,1,opt,name=updated_by,json=updatedBy,proto3" json:"updated_by,omitempty"` // serialized page content(for example serialized draft js object) Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Fields that can be updated Changing either or both of name and namespace attributes alter the slug for the page
func (*ExistingContentAttributes) Descriptor ¶
func (*ExistingContentAttributes) Descriptor() ([]byte, []int)
func (*ExistingContentAttributes) GetContent ¶
func (m *ExistingContentAttributes) GetContent() string
func (*ExistingContentAttributes) GetUpdatedBy ¶
func (m *ExistingContentAttributes) GetUpdatedBy() int64
func (*ExistingContentAttributes) ProtoMessage ¶
func (*ExistingContentAttributes) ProtoMessage()
func (*ExistingContentAttributes) Reset ¶
func (m *ExistingContentAttributes) Reset()
func (*ExistingContentAttributes) String ¶
func (m *ExistingContentAttributes) String() string
func (*ExistingContentAttributes) Validate ¶
func (this *ExistingContentAttributes) Validate() error
func (*ExistingContentAttributes) XXX_DiscardUnknown ¶
func (m *ExistingContentAttributes) XXX_DiscardUnknown()
func (*ExistingContentAttributes) XXX_Marshal ¶
func (m *ExistingContentAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ExistingContentAttributes) XXX_Merge ¶
func (dst *ExistingContentAttributes) XXX_Merge(src proto.Message)
func (*ExistingContentAttributes) XXX_Size ¶
func (m *ExistingContentAttributes) XXX_Size() int
func (*ExistingContentAttributes) XXX_Unmarshal ¶
func (m *ExistingContentAttributes) XXX_Unmarshal(b []byte) error
type NewContentAttributes ¶
type NewContentAttributes struct { // page name Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // user id who is creating this content // The existence of user will be verified(not implemented yet) // using the `user` microservice backend. CreatedBy int64 `protobuf:"varint,2,opt,name=created_by,json=createdBy,proto3" json:"created_by,omitempty"` // page content, expected to be serialized `JSON` string. Content string `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"` // namespace for the page, it is prepended to the // name to generate an unique slug. Namespace string `protobuf:"bytes,4,opt,name=namespace,proto3" json:"namespace,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Definition for fields that are needed for storing the content
func (*NewContentAttributes) Descriptor ¶
func (*NewContentAttributes) Descriptor() ([]byte, []int)
func (*NewContentAttributes) GetContent ¶
func (m *NewContentAttributes) GetContent() string
func (*NewContentAttributes) GetCreatedBy ¶
func (m *NewContentAttributes) GetCreatedBy() int64
func (*NewContentAttributes) GetName ¶
func (m *NewContentAttributes) GetName() string
func (*NewContentAttributes) GetNamespace ¶
func (m *NewContentAttributes) GetNamespace() string
func (*NewContentAttributes) ProtoMessage ¶
func (*NewContentAttributes) ProtoMessage()
func (*NewContentAttributes) Reset ¶
func (m *NewContentAttributes) Reset()
func (*NewContentAttributes) String ¶
func (m *NewContentAttributes) String() string
func (*NewContentAttributes) Validate ¶
func (this *NewContentAttributes) Validate() error
func (*NewContentAttributes) XXX_DiscardUnknown ¶
func (m *NewContentAttributes) XXX_DiscardUnknown()
func (*NewContentAttributes) XXX_Marshal ¶
func (m *NewContentAttributes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*NewContentAttributes) XXX_Merge ¶
func (dst *NewContentAttributes) XXX_Merge(src proto.Message)
func (*NewContentAttributes) XXX_Size ¶
func (m *NewContentAttributes) XXX_Size() int
func (*NewContentAttributes) XXX_Unmarshal ¶
func (m *NewContentAttributes) XXX_Unmarshal(b []byte) error
type StoreContentRequest ¶
type StoreContentRequest struct { Data *StoreContentRequest_Data `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Definition for storing new content
func (*StoreContentRequest) Descriptor ¶
func (*StoreContentRequest) Descriptor() ([]byte, []int)
func (*StoreContentRequest) GetData ¶
func (m *StoreContentRequest) GetData() *StoreContentRequest_Data
func (*StoreContentRequest) ProtoMessage ¶
func (*StoreContentRequest) ProtoMessage()
func (*StoreContentRequest) Reset ¶
func (m *StoreContentRequest) Reset()
func (*StoreContentRequest) String ¶
func (m *StoreContentRequest) String() string
func (*StoreContentRequest) Validate ¶
func (this *StoreContentRequest) Validate() error
func (*StoreContentRequest) XXX_DiscardUnknown ¶
func (m *StoreContentRequest) XXX_DiscardUnknown()
func (*StoreContentRequest) XXX_Marshal ¶
func (m *StoreContentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*StoreContentRequest) XXX_Merge ¶
func (dst *StoreContentRequest) XXX_Merge(src proto.Message)
func (*StoreContentRequest) XXX_Size ¶
func (m *StoreContentRequest) XXX_Size() int
func (*StoreContentRequest) XXX_Unmarshal ¶
func (m *StoreContentRequest) XXX_Unmarshal(b []byte) error
type StoreContentRequest_Data ¶
type StoreContentRequest_Data struct { // resource name Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` Attributes *NewContentAttributes `protobuf:"bytes,2,opt,name=attributes,proto3" json:"attributes,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*StoreContentRequest_Data) Descriptor ¶
func (*StoreContentRequest_Data) Descriptor() ([]byte, []int)
func (*StoreContentRequest_Data) GetAttributes ¶
func (m *StoreContentRequest_Data) GetAttributes() *NewContentAttributes
func (*StoreContentRequest_Data) GetType ¶
func (m *StoreContentRequest_Data) GetType() string
func (*StoreContentRequest_Data) ProtoMessage ¶
func (*StoreContentRequest_Data) ProtoMessage()
func (*StoreContentRequest_Data) Reset ¶
func (m *StoreContentRequest_Data) Reset()
func (*StoreContentRequest_Data) String ¶
func (m *StoreContentRequest_Data) String() string
func (*StoreContentRequest_Data) Validate ¶
func (this *StoreContentRequest_Data) Validate() error
func (*StoreContentRequest_Data) XXX_DiscardUnknown ¶
func (m *StoreContentRequest_Data) XXX_DiscardUnknown()
func (*StoreContentRequest_Data) XXX_Marshal ¶
func (m *StoreContentRequest_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*StoreContentRequest_Data) XXX_Merge ¶
func (dst *StoreContentRequest_Data) XXX_Merge(src proto.Message)
func (*StoreContentRequest_Data) XXX_Size ¶
func (m *StoreContentRequest_Data) XXX_Size() int
func (*StoreContentRequest_Data) XXX_Unmarshal ¶
func (m *StoreContentRequest_Data) XXX_Unmarshal(b []byte) error
type UpdateContentRequest ¶
type UpdateContentRequest struct { Data *UpdateContentRequest_Data `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` Id int64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` // An optional mask specifying which fields to update. // Presence of this field allow partial updates. UpdateMask *field_mask.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UpdateContentRequest) Descriptor ¶
func (*UpdateContentRequest) Descriptor() ([]byte, []int)
func (*UpdateContentRequest) GetData ¶
func (m *UpdateContentRequest) GetData() *UpdateContentRequest_Data
func (*UpdateContentRequest) GetId ¶
func (m *UpdateContentRequest) GetId() int64
func (*UpdateContentRequest) GetUpdateMask ¶
func (m *UpdateContentRequest) GetUpdateMask() *field_mask.FieldMask
func (*UpdateContentRequest) ProtoMessage ¶
func (*UpdateContentRequest) ProtoMessage()
func (*UpdateContentRequest) Reset ¶
func (m *UpdateContentRequest) Reset()
func (*UpdateContentRequest) String ¶
func (m *UpdateContentRequest) String() string
func (*UpdateContentRequest) Validate ¶
func (this *UpdateContentRequest) Validate() error
func (*UpdateContentRequest) XXX_DiscardUnknown ¶
func (m *UpdateContentRequest) XXX_DiscardUnknown()
func (*UpdateContentRequest) XXX_Marshal ¶
func (m *UpdateContentRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UpdateContentRequest) XXX_Merge ¶
func (dst *UpdateContentRequest) XXX_Merge(src proto.Message)
func (*UpdateContentRequest) XXX_Size ¶
func (m *UpdateContentRequest) XXX_Size() int
func (*UpdateContentRequest) XXX_Unmarshal ¶
func (m *UpdateContentRequest) XXX_Unmarshal(b []byte) error
type UpdateContentRequest_Data ¶
type UpdateContentRequest_Data struct { // resource name Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` // unique id Id int64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"` Attributes *ExistingContentAttributes `protobuf:"bytes,3,opt,name=attributes,proto3" json:"attributes,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*UpdateContentRequest_Data) Descriptor ¶
func (*UpdateContentRequest_Data) Descriptor() ([]byte, []int)
func (*UpdateContentRequest_Data) GetAttributes ¶
func (m *UpdateContentRequest_Data) GetAttributes() *ExistingContentAttributes
func (*UpdateContentRequest_Data) GetId ¶
func (m *UpdateContentRequest_Data) GetId() int64
func (*UpdateContentRequest_Data) GetType ¶
func (m *UpdateContentRequest_Data) GetType() string
func (*UpdateContentRequest_Data) ProtoMessage ¶
func (*UpdateContentRequest_Data) ProtoMessage()
func (*UpdateContentRequest_Data) Reset ¶
func (m *UpdateContentRequest_Data) Reset()
func (*UpdateContentRequest_Data) String ¶
func (m *UpdateContentRequest_Data) String() string
func (*UpdateContentRequest_Data) Validate ¶
func (this *UpdateContentRequest_Data) Validate() error
func (*UpdateContentRequest_Data) XXX_DiscardUnknown ¶
func (m *UpdateContentRequest_Data) XXX_DiscardUnknown()
func (*UpdateContentRequest_Data) XXX_Marshal ¶
func (m *UpdateContentRequest_Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UpdateContentRequest_Data) XXX_Merge ¶
func (dst *UpdateContentRequest_Data) XXX_Merge(src proto.Message)
func (*UpdateContentRequest_Data) XXX_Size ¶
func (m *UpdateContentRequest_Data) XXX_Size() int
func (*UpdateContentRequest_Data) XXX_Unmarshal ¶
func (m *UpdateContentRequest_Data) XXX_Unmarshal(b []byte) error