Documentation ¶
Overview ¶
Package v1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func KeyPrefix(p string) []byte
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetResourceList() []*Resource
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgCreateResource
- func (*MsgCreateResource) Descriptor() ([]byte, []int)
- func (m *MsgCreateResource) GetPayload() *MsgCreateResourcePayload
- func (m *MsgCreateResource) GetSignatures() []*v1.SignInfo
- func (m *MsgCreateResource) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateResource) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateResource) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateResource) ProtoMessage()
- func (m *MsgCreateResource) Reset()
- func (m *MsgCreateResource) Size() (n int)
- func (m *MsgCreateResource) String() string
- func (m *MsgCreateResource) Unmarshal(dAtA []byte) error
- func (m *MsgCreateResource) XXX_DiscardUnknown()
- func (m *MsgCreateResource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateResource) XXX_Merge(src proto.Message)
- func (m *MsgCreateResource) XXX_Size() int
- func (m *MsgCreateResource) XXX_Unmarshal(b []byte) error
- type MsgCreateResourcePayload
- func (*MsgCreateResourcePayload) Descriptor() ([]byte, []int)
- func (m *MsgCreateResourcePayload) GetCollectionId() string
- func (m *MsgCreateResourcePayload) GetData() []byte
- func (m *MsgCreateResourcePayload) GetId() string
- func (m *MsgCreateResourcePayload) GetName() string
- func (m *MsgCreateResourcePayload) GetResourceType() string
- func (m *MsgCreateResourcePayload) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateResourcePayload) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateResourcePayload) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateResourcePayload) ProtoMessage()
- func (m *MsgCreateResourcePayload) Reset()
- func (m *MsgCreateResourcePayload) Size() (n int)
- func (m *MsgCreateResourcePayload) String() string
- func (m *MsgCreateResourcePayload) Unmarshal(dAtA []byte) error
- func (m *MsgCreateResourcePayload) XXX_DiscardUnknown()
- func (m *MsgCreateResourcePayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateResourcePayload) XXX_Merge(src proto.Message)
- func (m *MsgCreateResourcePayload) XXX_Size() int
- func (m *MsgCreateResourcePayload) XXX_Unmarshal(b []byte) error
- type MsgCreateResourceResponse
- func (*MsgCreateResourceResponse) Descriptor() ([]byte, []int)
- func (m *MsgCreateResourceResponse) GetResource() *Resource
- func (m *MsgCreateResourceResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateResourceResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateResourceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateResourceResponse) ProtoMessage()
- func (m *MsgCreateResourceResponse) Reset()
- func (m *MsgCreateResourceResponse) Size() (n int)
- func (m *MsgCreateResourceResponse) String() string
- func (m *MsgCreateResourceResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCreateResourceResponse) XXX_DiscardUnknown()
- func (m *MsgCreateResourceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateResourceResponse) XXX_Merge(src proto.Message)
- func (m *MsgCreateResourceResponse) XXX_Size() int
- func (m *MsgCreateResourceResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type QueryClient
- type QueryCollectionResourcesRequest
- func (*QueryCollectionResourcesRequest) Descriptor() ([]byte, []int)
- func (m *QueryCollectionResourcesRequest) GetCollectionId() string
- func (m *QueryCollectionResourcesRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryCollectionResourcesRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryCollectionResourcesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryCollectionResourcesRequest) ProtoMessage()
- func (m *QueryCollectionResourcesRequest) Reset()
- func (m *QueryCollectionResourcesRequest) Size() (n int)
- func (m *QueryCollectionResourcesRequest) String() string
- func (m *QueryCollectionResourcesRequest) Unmarshal(dAtA []byte) error
- func (m *QueryCollectionResourcesRequest) XXX_DiscardUnknown()
- func (m *QueryCollectionResourcesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryCollectionResourcesRequest) XXX_Merge(src proto.Message)
- func (m *QueryCollectionResourcesRequest) XXX_Size() int
- func (m *QueryCollectionResourcesRequest) XXX_Unmarshal(b []byte) error
- type QueryCollectionResourcesResponse
- func (*QueryCollectionResourcesResponse) Descriptor() ([]byte, []int)
- func (m *QueryCollectionResourcesResponse) GetResources() []*ResourceHeader
- func (m *QueryCollectionResourcesResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryCollectionResourcesResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryCollectionResourcesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryCollectionResourcesResponse) ProtoMessage()
- func (m *QueryCollectionResourcesResponse) Reset()
- func (m *QueryCollectionResourcesResponse) Size() (n int)
- func (m *QueryCollectionResourcesResponse) String() string
- func (m *QueryCollectionResourcesResponse) Unmarshal(dAtA []byte) error
- func (m *QueryCollectionResourcesResponse) XXX_DiscardUnknown()
- func (m *QueryCollectionResourcesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryCollectionResourcesResponse) XXX_Merge(src proto.Message)
- func (m *QueryCollectionResourcesResponse) XXX_Size() int
- func (m *QueryCollectionResourcesResponse) XXX_Unmarshal(b []byte) error
- type QueryGetAllResourceVersionsRequest
- func (*QueryGetAllResourceVersionsRequest) Descriptor() ([]byte, []int)
- func (m *QueryGetAllResourceVersionsRequest) GetCollectionId() string
- func (m *QueryGetAllResourceVersionsRequest) GetName() string
- func (m *QueryGetAllResourceVersionsRequest) GetResourceType() string
- func (m *QueryGetAllResourceVersionsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryGetAllResourceVersionsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetAllResourceVersionsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetAllResourceVersionsRequest) ProtoMessage()
- func (m *QueryGetAllResourceVersionsRequest) Reset()
- func (m *QueryGetAllResourceVersionsRequest) Size() (n int)
- func (m *QueryGetAllResourceVersionsRequest) String() string
- func (m *QueryGetAllResourceVersionsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryGetAllResourceVersionsRequest) XXX_DiscardUnknown()
- func (m *QueryGetAllResourceVersionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetAllResourceVersionsRequest) XXX_Merge(src proto.Message)
- func (m *QueryGetAllResourceVersionsRequest) XXX_Size() int
- func (m *QueryGetAllResourceVersionsRequest) XXX_Unmarshal(b []byte) error
- type QueryGetAllResourceVersionsResponse
- func (*QueryGetAllResourceVersionsResponse) Descriptor() ([]byte, []int)
- func (m *QueryGetAllResourceVersionsResponse) GetResources() []*ResourceHeader
- func (m *QueryGetAllResourceVersionsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryGetAllResourceVersionsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetAllResourceVersionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetAllResourceVersionsResponse) ProtoMessage()
- func (m *QueryGetAllResourceVersionsResponse) Reset()
- func (m *QueryGetAllResourceVersionsResponse) Size() (n int)
- func (m *QueryGetAllResourceVersionsResponse) String() string
- func (m *QueryGetAllResourceVersionsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryGetAllResourceVersionsResponse) XXX_DiscardUnknown()
- func (m *QueryGetAllResourceVersionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetAllResourceVersionsResponse) XXX_Merge(src proto.Message)
- func (m *QueryGetAllResourceVersionsResponse) XXX_Size() int
- func (m *QueryGetAllResourceVersionsResponse) XXX_Unmarshal(b []byte) error
- type QueryResourceRequest
- func (*QueryResourceRequest) Descriptor() ([]byte, []int)
- func (m *QueryResourceRequest) GetCollectionId() string
- func (m *QueryResourceRequest) GetId() string
- func (m *QueryResourceRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryResourceRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryResourceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryResourceRequest) ProtoMessage()
- func (m *QueryResourceRequest) Reset()
- func (m *QueryResourceRequest) Size() (n int)
- func (m *QueryResourceRequest) String() string
- func (m *QueryResourceRequest) Unmarshal(dAtA []byte) error
- func (m *QueryResourceRequest) XXX_DiscardUnknown()
- func (m *QueryResourceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryResourceRequest) XXX_Merge(src proto.Message)
- func (m *QueryResourceRequest) XXX_Size() int
- func (m *QueryResourceRequest) XXX_Unmarshal(b []byte) error
- type QueryResourceResponse
- func (*QueryResourceResponse) Descriptor() ([]byte, []int)
- func (m *QueryResourceResponse) GetResource() *Resource
- func (m *QueryResourceResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryResourceResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryResourceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryResourceResponse) ProtoMessage()
- func (m *QueryResourceResponse) Reset()
- func (m *QueryResourceResponse) Size() (n int)
- func (m *QueryResourceResponse) String() string
- func (m *QueryResourceResponse) Unmarshal(dAtA []byte) error
- func (m *QueryResourceResponse) XXX_DiscardUnknown()
- func (m *QueryResourceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryResourceResponse) XXX_Merge(src proto.Message)
- func (m *QueryResourceResponse) XXX_Size() int
- func (m *QueryResourceResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type Resource
- func (*Resource) Descriptor() ([]byte, []int)
- func (m *Resource) GetData() []byte
- func (m *Resource) GetHeader() *ResourceHeader
- func (m *Resource) Marshal() (dAtA []byte, err error)
- func (m *Resource) MarshalTo(dAtA []byte) (int, error)
- func (m *Resource) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Resource) ProtoMessage()
- func (m *Resource) Reset()
- func (m *Resource) Size() (n int)
- func (m *Resource) String() string
- func (m *Resource) Unmarshal(dAtA []byte) error
- func (m *Resource) XXX_DiscardUnknown()
- func (m *Resource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Resource) XXX_Merge(src proto.Message)
- func (m *Resource) XXX_Size() int
- func (m *Resource) XXX_Unmarshal(b []byte) error
- type ResourceHeader
- func (*ResourceHeader) Descriptor() ([]byte, []int)
- func (m *ResourceHeader) GetChecksum() []byte
- func (m *ResourceHeader) GetCollectionId() string
- func (m *ResourceHeader) GetCreated() string
- func (m *ResourceHeader) GetId() string
- func (m *ResourceHeader) GetMediaType() string
- func (m *ResourceHeader) GetName() string
- func (m *ResourceHeader) GetNextVersionId() string
- func (m *ResourceHeader) GetPreviousVersionId() string
- func (m *ResourceHeader) GetResourceType() string
- func (m *ResourceHeader) Marshal() (dAtA []byte, err error)
- func (m *ResourceHeader) MarshalTo(dAtA []byte) (int, error)
- func (m *ResourceHeader) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ResourceHeader) ProtoMessage()
- func (m *ResourceHeader) Reset()
- func (m *ResourceHeader) Size() (n int)
- func (m *ResourceHeader) String() string
- func (m *ResourceHeader) Unmarshal(dAtA []byte) error
- func (m *ResourceHeader) XXX_DiscardUnknown()
- func (m *ResourceHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ResourceHeader) XXX_Merge(src proto.Message)
- func (m *ResourceHeader) XXX_Size() int
- func (m *ResourceHeader) XXX_Unmarshal(b []byte) error
- type UnimplementedMsgServer
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) AllResourceVersions(ctx context.Context, req *QueryGetAllResourceVersionsRequest) (*QueryGetAllResourceVersionsResponse, error)
- func (*UnimplementedQueryServer) CollectionResources(ctx context.Context, req *QueryCollectionResourcesRequest) (*QueryCollectionResourcesResponse, error)
- func (*UnimplementedQueryServer) Resource(ctx context.Context, req *QueryResourceRequest) (*QueryResourceResponse, error)
Constants ¶
const ( // ModuleName defines the module name ModuleName = "resource" // StoreKey defines the primary module store key StoreKey = ModuleName // RouterKey is the message route for slashing RouterKey = ModuleName // QuerierRoute defines the module's query routing key QuerierRoute = ModuleName )
const ( ResourceHeaderKey = "resource-header:" ResourceDataKey = "resource-data:" ResourceCountKey = "resource-count:" )
Variables ¶
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
Functions ¶
func RegisterMsgServer ¶
func RegisterQueryHandler ¶
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶
func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.
func RegisterQueryHandlerFromEndpoint ¶
func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryHandlerServer ¶
func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
Types ¶
type GenesisState ¶
type GenesisState struct {
ResourceList []*Resource `protobuf:"bytes,1,rep,name=resourceList,proto3" json:"resourceList,omitempty"`
}
GenesisState defines the cheqd module's genesis state.
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetResourceList ¶
func (m *GenesisState) GetResourceList() []*Resource
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err error)
func (*GenesisState) MarshalToSizedBuffer ¶
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState) ProtoMessage ¶
func (*GenesisState) ProtoMessage()
func (*GenesisState) Reset ¶
func (m *GenesisState) Reset()
func (*GenesisState) Size ¶
func (m *GenesisState) Size() (n int)
func (*GenesisState) String ¶
func (m *GenesisState) String() string
func (*GenesisState) Unmarshal ¶
func (m *GenesisState) Unmarshal(dAtA []byte) error
func (*GenesisState) XXX_DiscardUnknown ¶
func (m *GenesisState) XXX_DiscardUnknown()
func (*GenesisState) XXX_Marshal ¶
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisState) XXX_Merge ¶
func (m *GenesisState) XXX_Merge(src proto.Message)
func (*GenesisState) XXX_Size ¶
func (m *GenesisState) XXX_Size() int
func (*GenesisState) XXX_Unmarshal ¶
func (m *GenesisState) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface {
CreateResource(ctx context.Context, in *MsgCreateResource, opts ...grpc.CallOption) (*MsgCreateResourceResponse, error)
}
MsgClient is the client API for Msg service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewMsgClient ¶
func NewMsgClient(cc grpc1.ClientConn) MsgClient
type MsgCreateResource ¶
type MsgCreateResource struct { Payload *MsgCreateResourcePayload `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` Signatures []*v1.SignInfo `protobuf:"bytes,2,rep,name=signatures,proto3" json:"signatures,omitempty"` }
this line is used by starport scaffolding # proto/tx/message
func (*MsgCreateResource) Descriptor ¶
func (*MsgCreateResource) Descriptor() ([]byte, []int)
func (*MsgCreateResource) GetPayload ¶
func (m *MsgCreateResource) GetPayload() *MsgCreateResourcePayload
func (*MsgCreateResource) GetSignatures ¶
func (m *MsgCreateResource) GetSignatures() []*v1.SignInfo
func (*MsgCreateResource) Marshal ¶
func (m *MsgCreateResource) Marshal() (dAtA []byte, err error)
func (*MsgCreateResource) MarshalTo ¶
func (m *MsgCreateResource) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreateResource) MarshalToSizedBuffer ¶
func (m *MsgCreateResource) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateResource) ProtoMessage ¶
func (*MsgCreateResource) ProtoMessage()
func (*MsgCreateResource) Reset ¶
func (m *MsgCreateResource) Reset()
func (*MsgCreateResource) Size ¶
func (m *MsgCreateResource) Size() (n int)
func (*MsgCreateResource) String ¶
func (m *MsgCreateResource) String() string
func (*MsgCreateResource) Unmarshal ¶
func (m *MsgCreateResource) Unmarshal(dAtA []byte) error
func (*MsgCreateResource) XXX_DiscardUnknown ¶
func (m *MsgCreateResource) XXX_DiscardUnknown()
func (*MsgCreateResource) XXX_Marshal ¶
func (m *MsgCreateResource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateResource) XXX_Merge ¶
func (m *MsgCreateResource) XXX_Merge(src proto.Message)
func (*MsgCreateResource) XXX_Size ¶
func (m *MsgCreateResource) XXX_Size() int
func (*MsgCreateResource) XXX_Unmarshal ¶
func (m *MsgCreateResource) XXX_Unmarshal(b []byte) error
type MsgCreateResourcePayload ¶
type MsgCreateResourcePayload struct { CollectionId string `protobuf:"bytes,1,opt,name=collection_id,json=collectionId,proto3" json:"collection_id,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` ResourceType string `protobuf:"bytes,4,opt,name=resource_type,json=resourceType,proto3" json:"resource_type,omitempty"` Data []byte `protobuf:"bytes,6,opt,name=data,proto3" json:"data,omitempty"` }
func (*MsgCreateResourcePayload) Descriptor ¶
func (*MsgCreateResourcePayload) Descriptor() ([]byte, []int)
func (*MsgCreateResourcePayload) GetCollectionId ¶
func (m *MsgCreateResourcePayload) GetCollectionId() string
func (*MsgCreateResourcePayload) GetData ¶
func (m *MsgCreateResourcePayload) GetData() []byte
func (*MsgCreateResourcePayload) GetId ¶
func (m *MsgCreateResourcePayload) GetId() string
func (*MsgCreateResourcePayload) GetName ¶
func (m *MsgCreateResourcePayload) GetName() string
func (*MsgCreateResourcePayload) GetResourceType ¶
func (m *MsgCreateResourcePayload) GetResourceType() string
func (*MsgCreateResourcePayload) Marshal ¶
func (m *MsgCreateResourcePayload) Marshal() (dAtA []byte, err error)
func (*MsgCreateResourcePayload) MarshalTo ¶
func (m *MsgCreateResourcePayload) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreateResourcePayload) MarshalToSizedBuffer ¶
func (m *MsgCreateResourcePayload) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateResourcePayload) ProtoMessage ¶
func (*MsgCreateResourcePayload) ProtoMessage()
func (*MsgCreateResourcePayload) Reset ¶
func (m *MsgCreateResourcePayload) Reset()
func (*MsgCreateResourcePayload) Size ¶
func (m *MsgCreateResourcePayload) Size() (n int)
func (*MsgCreateResourcePayload) String ¶
func (m *MsgCreateResourcePayload) String() string
func (*MsgCreateResourcePayload) Unmarshal ¶
func (m *MsgCreateResourcePayload) Unmarshal(dAtA []byte) error
func (*MsgCreateResourcePayload) XXX_DiscardUnknown ¶
func (m *MsgCreateResourcePayload) XXX_DiscardUnknown()
func (*MsgCreateResourcePayload) XXX_Marshal ¶
func (m *MsgCreateResourcePayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateResourcePayload) XXX_Merge ¶
func (m *MsgCreateResourcePayload) XXX_Merge(src proto.Message)
func (*MsgCreateResourcePayload) XXX_Size ¶
func (m *MsgCreateResourcePayload) XXX_Size() int
func (*MsgCreateResourcePayload) XXX_Unmarshal ¶
func (m *MsgCreateResourcePayload) XXX_Unmarshal(b []byte) error
type MsgCreateResourceResponse ¶
type MsgCreateResourceResponse struct {
Resource *Resource `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`
}
func (*MsgCreateResourceResponse) Descriptor ¶
func (*MsgCreateResourceResponse) Descriptor() ([]byte, []int)
func (*MsgCreateResourceResponse) GetResource ¶
func (m *MsgCreateResourceResponse) GetResource() *Resource
func (*MsgCreateResourceResponse) Marshal ¶
func (m *MsgCreateResourceResponse) Marshal() (dAtA []byte, err error)
func (*MsgCreateResourceResponse) MarshalTo ¶
func (m *MsgCreateResourceResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreateResourceResponse) MarshalToSizedBuffer ¶
func (m *MsgCreateResourceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateResourceResponse) ProtoMessage ¶
func (*MsgCreateResourceResponse) ProtoMessage()
func (*MsgCreateResourceResponse) Reset ¶
func (m *MsgCreateResourceResponse) Reset()
func (*MsgCreateResourceResponse) Size ¶
func (m *MsgCreateResourceResponse) Size() (n int)
func (*MsgCreateResourceResponse) String ¶
func (m *MsgCreateResourceResponse) String() string
func (*MsgCreateResourceResponse) Unmarshal ¶
func (m *MsgCreateResourceResponse) Unmarshal(dAtA []byte) error
func (*MsgCreateResourceResponse) XXX_DiscardUnknown ¶
func (m *MsgCreateResourceResponse) XXX_DiscardUnknown()
func (*MsgCreateResourceResponse) XXX_Marshal ¶
func (m *MsgCreateResourceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateResourceResponse) XXX_Merge ¶
func (m *MsgCreateResourceResponse) XXX_Merge(src proto.Message)
func (*MsgCreateResourceResponse) XXX_Size ¶
func (m *MsgCreateResourceResponse) XXX_Size() int
func (*MsgCreateResourceResponse) XXX_Unmarshal ¶
func (m *MsgCreateResourceResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface {
CreateResource(context.Context, *MsgCreateResource) (*MsgCreateResourceResponse, error)
}
MsgServer is the server API for Msg service.
type QueryClient ¶
type QueryClient interface { Resource(ctx context.Context, in *QueryResourceRequest, opts ...grpc.CallOption) (*QueryResourceResponse, error) CollectionResources(ctx context.Context, in *QueryCollectionResourcesRequest, opts ...grpc.CallOption) (*QueryCollectionResourcesResponse, error) AllResourceVersions(ctx context.Context, in *QueryGetAllResourceVersionsRequest, opts ...grpc.CallOption) (*QueryGetAllResourceVersionsResponse, error) }
QueryClient is the client API for Query service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewQueryClient ¶
func NewQueryClient(cc grpc1.ClientConn) QueryClient
type QueryCollectionResourcesRequest ¶
type QueryCollectionResourcesRequest struct {
CollectionId string `protobuf:"bytes,1,opt,name=collection_id,json=collectionId,proto3" json:"collection_id,omitempty"`
}
func (*QueryCollectionResourcesRequest) Descriptor ¶
func (*QueryCollectionResourcesRequest) Descriptor() ([]byte, []int)
func (*QueryCollectionResourcesRequest) GetCollectionId ¶
func (m *QueryCollectionResourcesRequest) GetCollectionId() string
func (*QueryCollectionResourcesRequest) Marshal ¶
func (m *QueryCollectionResourcesRequest) Marshal() (dAtA []byte, err error)
func (*QueryCollectionResourcesRequest) MarshalTo ¶
func (m *QueryCollectionResourcesRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryCollectionResourcesRequest) MarshalToSizedBuffer ¶
func (m *QueryCollectionResourcesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryCollectionResourcesRequest) ProtoMessage ¶
func (*QueryCollectionResourcesRequest) ProtoMessage()
func (*QueryCollectionResourcesRequest) Reset ¶
func (m *QueryCollectionResourcesRequest) Reset()
func (*QueryCollectionResourcesRequest) Size ¶
func (m *QueryCollectionResourcesRequest) Size() (n int)
func (*QueryCollectionResourcesRequest) String ¶
func (m *QueryCollectionResourcesRequest) String() string
func (*QueryCollectionResourcesRequest) Unmarshal ¶
func (m *QueryCollectionResourcesRequest) Unmarshal(dAtA []byte) error
func (*QueryCollectionResourcesRequest) XXX_DiscardUnknown ¶
func (m *QueryCollectionResourcesRequest) XXX_DiscardUnknown()
func (*QueryCollectionResourcesRequest) XXX_Marshal ¶
func (m *QueryCollectionResourcesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryCollectionResourcesRequest) XXX_Merge ¶
func (m *QueryCollectionResourcesRequest) XXX_Merge(src proto.Message)
func (*QueryCollectionResourcesRequest) XXX_Size ¶
func (m *QueryCollectionResourcesRequest) XXX_Size() int
func (*QueryCollectionResourcesRequest) XXX_Unmarshal ¶
func (m *QueryCollectionResourcesRequest) XXX_Unmarshal(b []byte) error
type QueryCollectionResourcesResponse ¶
type QueryCollectionResourcesResponse struct {
Resources []*ResourceHeader `protobuf:"bytes,1,rep,name=resources,proto3" json:"resources,omitempty"`
}
func (*QueryCollectionResourcesResponse) Descriptor ¶
func (*QueryCollectionResourcesResponse) Descriptor() ([]byte, []int)
func (*QueryCollectionResourcesResponse) GetResources ¶
func (m *QueryCollectionResourcesResponse) GetResources() []*ResourceHeader
func (*QueryCollectionResourcesResponse) Marshal ¶
func (m *QueryCollectionResourcesResponse) Marshal() (dAtA []byte, err error)
func (*QueryCollectionResourcesResponse) MarshalTo ¶
func (m *QueryCollectionResourcesResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryCollectionResourcesResponse) MarshalToSizedBuffer ¶
func (m *QueryCollectionResourcesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryCollectionResourcesResponse) ProtoMessage ¶
func (*QueryCollectionResourcesResponse) ProtoMessage()
func (*QueryCollectionResourcesResponse) Reset ¶
func (m *QueryCollectionResourcesResponse) Reset()
func (*QueryCollectionResourcesResponse) Size ¶
func (m *QueryCollectionResourcesResponse) Size() (n int)
func (*QueryCollectionResourcesResponse) String ¶
func (m *QueryCollectionResourcesResponse) String() string
func (*QueryCollectionResourcesResponse) Unmarshal ¶
func (m *QueryCollectionResourcesResponse) Unmarshal(dAtA []byte) error
func (*QueryCollectionResourcesResponse) XXX_DiscardUnknown ¶
func (m *QueryCollectionResourcesResponse) XXX_DiscardUnknown()
func (*QueryCollectionResourcesResponse) XXX_Marshal ¶
func (m *QueryCollectionResourcesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryCollectionResourcesResponse) XXX_Merge ¶
func (m *QueryCollectionResourcesResponse) XXX_Merge(src proto.Message)
func (*QueryCollectionResourcesResponse) XXX_Size ¶
func (m *QueryCollectionResourcesResponse) XXX_Size() int
func (*QueryCollectionResourcesResponse) XXX_Unmarshal ¶
func (m *QueryCollectionResourcesResponse) XXX_Unmarshal(b []byte) error
type QueryGetAllResourceVersionsRequest ¶
type QueryGetAllResourceVersionsRequest struct { CollectionId string `protobuf:"bytes,1,opt,name=collection_id,json=collectionId,proto3" json:"collection_id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` ResourceType string `protobuf:"bytes,3,opt,name=resourceType,proto3" json:"resourceType,omitempty"` }
func (*QueryGetAllResourceVersionsRequest) Descriptor ¶
func (*QueryGetAllResourceVersionsRequest) Descriptor() ([]byte, []int)
func (*QueryGetAllResourceVersionsRequest) GetCollectionId ¶
func (m *QueryGetAllResourceVersionsRequest) GetCollectionId() string
func (*QueryGetAllResourceVersionsRequest) GetName ¶
func (m *QueryGetAllResourceVersionsRequest) GetName() string
func (*QueryGetAllResourceVersionsRequest) GetResourceType ¶
func (m *QueryGetAllResourceVersionsRequest) GetResourceType() string
func (*QueryGetAllResourceVersionsRequest) Marshal ¶
func (m *QueryGetAllResourceVersionsRequest) Marshal() (dAtA []byte, err error)
func (*QueryGetAllResourceVersionsRequest) MarshalTo ¶
func (m *QueryGetAllResourceVersionsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetAllResourceVersionsRequest) MarshalToSizedBuffer ¶
func (m *QueryGetAllResourceVersionsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetAllResourceVersionsRequest) ProtoMessage ¶
func (*QueryGetAllResourceVersionsRequest) ProtoMessage()
func (*QueryGetAllResourceVersionsRequest) Reset ¶
func (m *QueryGetAllResourceVersionsRequest) Reset()
func (*QueryGetAllResourceVersionsRequest) Size ¶
func (m *QueryGetAllResourceVersionsRequest) Size() (n int)
func (*QueryGetAllResourceVersionsRequest) String ¶
func (m *QueryGetAllResourceVersionsRequest) String() string
func (*QueryGetAllResourceVersionsRequest) Unmarshal ¶
func (m *QueryGetAllResourceVersionsRequest) Unmarshal(dAtA []byte) error
func (*QueryGetAllResourceVersionsRequest) XXX_DiscardUnknown ¶
func (m *QueryGetAllResourceVersionsRequest) XXX_DiscardUnknown()
func (*QueryGetAllResourceVersionsRequest) XXX_Marshal ¶
func (m *QueryGetAllResourceVersionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetAllResourceVersionsRequest) XXX_Merge ¶
func (m *QueryGetAllResourceVersionsRequest) XXX_Merge(src proto.Message)
func (*QueryGetAllResourceVersionsRequest) XXX_Size ¶
func (m *QueryGetAllResourceVersionsRequest) XXX_Size() int
func (*QueryGetAllResourceVersionsRequest) XXX_Unmarshal ¶
func (m *QueryGetAllResourceVersionsRequest) XXX_Unmarshal(b []byte) error
type QueryGetAllResourceVersionsResponse ¶
type QueryGetAllResourceVersionsResponse struct {
Resources []*ResourceHeader `protobuf:"bytes,1,rep,name=resources,proto3" json:"resources,omitempty"`
}
func (*QueryGetAllResourceVersionsResponse) Descriptor ¶
func (*QueryGetAllResourceVersionsResponse) Descriptor() ([]byte, []int)
func (*QueryGetAllResourceVersionsResponse) GetResources ¶
func (m *QueryGetAllResourceVersionsResponse) GetResources() []*ResourceHeader
func (*QueryGetAllResourceVersionsResponse) Marshal ¶
func (m *QueryGetAllResourceVersionsResponse) Marshal() (dAtA []byte, err error)
func (*QueryGetAllResourceVersionsResponse) MarshalTo ¶
func (m *QueryGetAllResourceVersionsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetAllResourceVersionsResponse) MarshalToSizedBuffer ¶
func (m *QueryGetAllResourceVersionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetAllResourceVersionsResponse) ProtoMessage ¶
func (*QueryGetAllResourceVersionsResponse) ProtoMessage()
func (*QueryGetAllResourceVersionsResponse) Reset ¶
func (m *QueryGetAllResourceVersionsResponse) Reset()
func (*QueryGetAllResourceVersionsResponse) Size ¶
func (m *QueryGetAllResourceVersionsResponse) Size() (n int)
func (*QueryGetAllResourceVersionsResponse) String ¶
func (m *QueryGetAllResourceVersionsResponse) String() string
func (*QueryGetAllResourceVersionsResponse) Unmarshal ¶
func (m *QueryGetAllResourceVersionsResponse) Unmarshal(dAtA []byte) error
func (*QueryGetAllResourceVersionsResponse) XXX_DiscardUnknown ¶
func (m *QueryGetAllResourceVersionsResponse) XXX_DiscardUnknown()
func (*QueryGetAllResourceVersionsResponse) XXX_Marshal ¶
func (m *QueryGetAllResourceVersionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetAllResourceVersionsResponse) XXX_Merge ¶
func (m *QueryGetAllResourceVersionsResponse) XXX_Merge(src proto.Message)
func (*QueryGetAllResourceVersionsResponse) XXX_Size ¶
func (m *QueryGetAllResourceVersionsResponse) XXX_Size() int
func (*QueryGetAllResourceVersionsResponse) XXX_Unmarshal ¶
func (m *QueryGetAllResourceVersionsResponse) XXX_Unmarshal(b []byte) error
type QueryResourceRequest ¶
type QueryResourceRequest struct { CollectionId string `protobuf:"bytes,1,opt,name=collection_id,json=collectionId,proto3" json:"collection_id,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` }
func (*QueryResourceRequest) Descriptor ¶
func (*QueryResourceRequest) Descriptor() ([]byte, []int)
func (*QueryResourceRequest) GetCollectionId ¶
func (m *QueryResourceRequest) GetCollectionId() string
func (*QueryResourceRequest) GetId ¶
func (m *QueryResourceRequest) GetId() string
func (*QueryResourceRequest) Marshal ¶
func (m *QueryResourceRequest) Marshal() (dAtA []byte, err error)
func (*QueryResourceRequest) MarshalTo ¶
func (m *QueryResourceRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryResourceRequest) MarshalToSizedBuffer ¶
func (m *QueryResourceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryResourceRequest) ProtoMessage ¶
func (*QueryResourceRequest) ProtoMessage()
func (*QueryResourceRequest) Reset ¶
func (m *QueryResourceRequest) Reset()
func (*QueryResourceRequest) Size ¶
func (m *QueryResourceRequest) Size() (n int)
func (*QueryResourceRequest) String ¶
func (m *QueryResourceRequest) String() string
func (*QueryResourceRequest) Unmarshal ¶
func (m *QueryResourceRequest) Unmarshal(dAtA []byte) error
func (*QueryResourceRequest) XXX_DiscardUnknown ¶
func (m *QueryResourceRequest) XXX_DiscardUnknown()
func (*QueryResourceRequest) XXX_Marshal ¶
func (m *QueryResourceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryResourceRequest) XXX_Merge ¶
func (m *QueryResourceRequest) XXX_Merge(src proto.Message)
func (*QueryResourceRequest) XXX_Size ¶
func (m *QueryResourceRequest) XXX_Size() int
func (*QueryResourceRequest) XXX_Unmarshal ¶
func (m *QueryResourceRequest) XXX_Unmarshal(b []byte) error
type QueryResourceResponse ¶
type QueryResourceResponse struct {
Resource *Resource `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`
}
func (*QueryResourceResponse) Descriptor ¶
func (*QueryResourceResponse) Descriptor() ([]byte, []int)
func (*QueryResourceResponse) GetResource ¶
func (m *QueryResourceResponse) GetResource() *Resource
func (*QueryResourceResponse) Marshal ¶
func (m *QueryResourceResponse) Marshal() (dAtA []byte, err error)
func (*QueryResourceResponse) MarshalTo ¶
func (m *QueryResourceResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryResourceResponse) MarshalToSizedBuffer ¶
func (m *QueryResourceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryResourceResponse) ProtoMessage ¶
func (*QueryResourceResponse) ProtoMessage()
func (*QueryResourceResponse) Reset ¶
func (m *QueryResourceResponse) Reset()
func (*QueryResourceResponse) Size ¶
func (m *QueryResourceResponse) Size() (n int)
func (*QueryResourceResponse) String ¶
func (m *QueryResourceResponse) String() string
func (*QueryResourceResponse) Unmarshal ¶
func (m *QueryResourceResponse) Unmarshal(dAtA []byte) error
func (*QueryResourceResponse) XXX_DiscardUnknown ¶
func (m *QueryResourceResponse) XXX_DiscardUnknown()
func (*QueryResourceResponse) XXX_Marshal ¶
func (m *QueryResourceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryResourceResponse) XXX_Merge ¶
func (m *QueryResourceResponse) XXX_Merge(src proto.Message)
func (*QueryResourceResponse) XXX_Size ¶
func (m *QueryResourceResponse) XXX_Size() int
func (*QueryResourceResponse) XXX_Unmarshal ¶
func (m *QueryResourceResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface { Resource(context.Context, *QueryResourceRequest) (*QueryResourceResponse, error) CollectionResources(context.Context, *QueryCollectionResourcesRequest) (*QueryCollectionResourcesResponse, error) AllResourceVersions(context.Context, *QueryGetAllResourceVersionsRequest) (*QueryGetAllResourceVersionsResponse, error) }
QueryServer is the server API for Query service.
type Resource ¶
type Resource struct { Header *ResourceHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` }
func (*Resource) Descriptor ¶
func (*Resource) GetHeader ¶
func (m *Resource) GetHeader() *ResourceHeader
func (*Resource) MarshalToSizedBuffer ¶
func (*Resource) ProtoMessage ¶
func (*Resource) ProtoMessage()
func (*Resource) XXX_DiscardUnknown ¶
func (m *Resource) XXX_DiscardUnknown()
func (*Resource) XXX_Marshal ¶
func (*Resource) XXX_Unmarshal ¶
type ResourceHeader ¶
type ResourceHeader struct { CollectionId string `protobuf:"bytes,1,opt,name=collection_id,json=collectionId,proto3" json:"collection_id,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` ResourceType string `protobuf:"bytes,4,opt,name=resource_type,json=resourceType,proto3" json:"resource_type,omitempty"` MediaType string `protobuf:"bytes,5,opt,name=media_type,json=mediaType,proto3" json:"media_type,omitempty"` Created string `protobuf:"bytes,6,opt,name=created,proto3" json:"created,omitempty"` Checksum []byte `protobuf:"bytes,7,opt,name=checksum,proto3" json:"checksum,omitempty"` PreviousVersionId string `protobuf:"bytes,8,opt,name=previous_version_id,json=previousVersionId,proto3" json:"previous_version_id,omitempty"` NextVersionId string `protobuf:"bytes,9,opt,name=next_version_id,json=nextVersionId,proto3" json:"next_version_id,omitempty"` }
func (*ResourceHeader) Descriptor ¶
func (*ResourceHeader) Descriptor() ([]byte, []int)
func (*ResourceHeader) GetChecksum ¶
func (m *ResourceHeader) GetChecksum() []byte
func (*ResourceHeader) GetCollectionId ¶
func (m *ResourceHeader) GetCollectionId() string
func (*ResourceHeader) GetCreated ¶
func (m *ResourceHeader) GetCreated() string
func (*ResourceHeader) GetId ¶
func (m *ResourceHeader) GetId() string
func (*ResourceHeader) GetMediaType ¶
func (m *ResourceHeader) GetMediaType() string
func (*ResourceHeader) GetName ¶
func (m *ResourceHeader) GetName() string
func (*ResourceHeader) GetNextVersionId ¶
func (m *ResourceHeader) GetNextVersionId() string
func (*ResourceHeader) GetPreviousVersionId ¶
func (m *ResourceHeader) GetPreviousVersionId() string
func (*ResourceHeader) GetResourceType ¶
func (m *ResourceHeader) GetResourceType() string
func (*ResourceHeader) Marshal ¶
func (m *ResourceHeader) Marshal() (dAtA []byte, err error)
func (*ResourceHeader) MarshalToSizedBuffer ¶
func (m *ResourceHeader) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ResourceHeader) ProtoMessage ¶
func (*ResourceHeader) ProtoMessage()
func (*ResourceHeader) Reset ¶
func (m *ResourceHeader) Reset()
func (*ResourceHeader) Size ¶
func (m *ResourceHeader) Size() (n int)
func (*ResourceHeader) String ¶
func (m *ResourceHeader) String() string
func (*ResourceHeader) Unmarshal ¶
func (m *ResourceHeader) Unmarshal(dAtA []byte) error
func (*ResourceHeader) XXX_DiscardUnknown ¶
func (m *ResourceHeader) XXX_DiscardUnknown()
func (*ResourceHeader) XXX_Marshal ¶
func (m *ResourceHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ResourceHeader) XXX_Merge ¶
func (m *ResourceHeader) XXX_Merge(src proto.Message)
func (*ResourceHeader) XXX_Size ¶
func (m *ResourceHeader) XXX_Size() int
func (*ResourceHeader) XXX_Unmarshal ¶
func (m *ResourceHeader) XXX_Unmarshal(b []byte) error
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) CreateResource ¶
func (*UnimplementedMsgServer) CreateResource(ctx context.Context, req *MsgCreateResource) (*MsgCreateResourceResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) AllResourceVersions ¶
func (*UnimplementedQueryServer) AllResourceVersions(ctx context.Context, req *QueryGetAllResourceVersionsRequest) (*QueryGetAllResourceVersionsResponse, error)
func (*UnimplementedQueryServer) CollectionResources ¶
func (*UnimplementedQueryServer) CollectionResources(ctx context.Context, req *QueryCollectionResourcesRequest) (*QueryCollectionResourcesResponse, error)
func (*UnimplementedQueryServer) Resource ¶
func (*UnimplementedQueryServer) Resource(ctx context.Context, req *QueryResourceRequest) (*QueryResourceResponse, error)