services

package
v0.0.0-...-893f904 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_api_ld_services_ld_proto protoreflect.FileDescriptor
View Source
var LinkedDataController_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.ld.services.LinkedDataController",
	HandlerType: (*LinkedDataControllerServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "addContexts",
			Handler:    _LinkedDataController_AddContexts_Handler,
		},
		{
			MethodName: "addRemoteProvider",
			Handler:    _LinkedDataController_AddRemoteProvider_Handler,
		},
		{
			MethodName: "refreshRemoteProvider",
			Handler:    _LinkedDataController_RefreshRemoteProvider_Handler,
		},
		{
			MethodName: "deleteRemoteProvider",
			Handler:    _LinkedDataController_DeleteRemoteProvider_Handler,
		},
		{
			MethodName: "getAllRemoteProviders",
			Handler:    _LinkedDataController_GetAllRemoteProviders_Handler,
		},
		{
			MethodName: "refreshAllRemoteProviders",
			Handler:    _LinkedDataController_RefreshAllRemoteProviders_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/ld/services/ld.proto",
}

LinkedDataController_ServiceDesc is the grpc.ServiceDesc for LinkedDataController service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterLinkedDataControllerServer

func RegisterLinkedDataControllerServer(s grpc.ServiceRegistrar, srv LinkedDataControllerServer)

Types

type AddContextsRequest

type AddContextsRequest struct {

	// in: body
	Documents []*types.Document `protobuf:"bytes,1,rep,name=documents,proto3" json:"documents,omitempty"`
	// contains filtered or unexported fields
}

AddContextsRequest is a request model for adding JSON-LD contexts. swagger:parameters addContextsReq

func (*AddContextsRequest) Descriptor deprecated

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

Deprecated: Use AddContextsRequest.ProtoReflect.Descriptor instead.

func (*AddContextsRequest) GetDocuments

func (x *AddContextsRequest) GetDocuments() []*types.Document

func (*AddContextsRequest) ProtoMessage

func (*AddContextsRequest) ProtoMessage()

func (*AddContextsRequest) ProtoReflect

func (x *AddContextsRequest) ProtoReflect() protoreflect.Message

func (*AddContextsRequest) Reset

func (x *AddContextsRequest) Reset()

func (*AddContextsRequest) String

func (x *AddContextsRequest) String() string

type AddContextsResponse

type AddContextsResponse struct {
	// contains filtered or unexported fields
}

func (*AddContextsResponse) Descriptor deprecated

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

Deprecated: Use AddContextsResponse.ProtoReflect.Descriptor instead.

func (*AddContextsResponse) ProtoMessage

func (*AddContextsResponse) ProtoMessage()

func (*AddContextsResponse) ProtoReflect

func (x *AddContextsResponse) ProtoReflect() protoreflect.Message

func (*AddContextsResponse) Reset

func (x *AddContextsResponse) Reset()

func (*AddContextsResponse) String

func (x *AddContextsResponse) String() string

type AddRemoteProviderRequest

type AddRemoteProviderRequest struct {
	Endpoint string `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
	// contains filtered or unexported fields
}

AddRemoteProviderRequest is a request model for adding a new remote context provider.

func (*AddRemoteProviderRequest) Descriptor deprecated

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

Deprecated: Use AddRemoteProviderRequest.ProtoReflect.Descriptor instead.

func (*AddRemoteProviderRequest) GetEndpoint

func (x *AddRemoteProviderRequest) GetEndpoint() string

func (*AddRemoteProviderRequest) ProtoMessage

func (*AddRemoteProviderRequest) ProtoMessage()

func (*AddRemoteProviderRequest) ProtoReflect

func (x *AddRemoteProviderRequest) ProtoReflect() protoreflect.Message

func (*AddRemoteProviderRequest) Reset

func (x *AddRemoteProviderRequest) Reset()

func (*AddRemoteProviderRequest) String

func (x *AddRemoteProviderRequest) String() string

type AddRemoteProviderResponse

type AddRemoteProviderResponse struct {
	// contains filtered or unexported fields
}

func (*AddRemoteProviderResponse) Descriptor deprecated

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

Deprecated: Use AddRemoteProviderResponse.ProtoReflect.Descriptor instead.

func (*AddRemoteProviderResponse) ProtoMessage

func (*AddRemoteProviderResponse) ProtoMessage()

func (*AddRemoteProviderResponse) ProtoReflect

func (*AddRemoteProviderResponse) Reset

func (x *AddRemoteProviderResponse) Reset()

func (*AddRemoteProviderResponse) String

func (x *AddRemoteProviderResponse) String() string

type DeleteRemoteProviderRequest

type DeleteRemoteProviderRequest struct {

	// in: path
	// required: true
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

DeleteRemoteProviderRequest model for deleting remote provider and JSON-LD contexts from that provider.

swagger:parameters deleteRemoteProviderReq

func (*DeleteRemoteProviderRequest) Descriptor deprecated

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

Deprecated: Use DeleteRemoteProviderRequest.ProtoReflect.Descriptor instead.

func (*DeleteRemoteProviderRequest) GetId

func (*DeleteRemoteProviderRequest) ProtoMessage

func (*DeleteRemoteProviderRequest) ProtoMessage()

func (*DeleteRemoteProviderRequest) ProtoReflect

func (*DeleteRemoteProviderRequest) Reset

func (x *DeleteRemoteProviderRequest) Reset()

func (*DeleteRemoteProviderRequest) String

func (x *DeleteRemoteProviderRequest) String() string

type DeleteRemoteProviderResponse

type DeleteRemoteProviderResponse struct {
	// contains filtered or unexported fields
}

func (*DeleteRemoteProviderResponse) Descriptor deprecated

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

Deprecated: Use DeleteRemoteProviderResponse.ProtoReflect.Descriptor instead.

func (*DeleteRemoteProviderResponse) ProtoMessage

func (*DeleteRemoteProviderResponse) ProtoMessage()

func (*DeleteRemoteProviderResponse) ProtoReflect

func (*DeleteRemoteProviderResponse) Reset

func (x *DeleteRemoteProviderResponse) Reset()

func (*DeleteRemoteProviderResponse) String

type DocAddRemoteProviderRequest

type DocAddRemoteProviderRequest struct {

	// in: body
	Body *AddRemoteProviderRequest `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"`
	// contains filtered or unexported fields
}

swagger:parameters addRemoteProviderReq

func (*DocAddRemoteProviderRequest) Descriptor deprecated

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

Deprecated: Use DocAddRemoteProviderRequest.ProtoReflect.Descriptor instead.

func (*DocAddRemoteProviderRequest) GetBody

func (*DocAddRemoteProviderRequest) ProtoMessage

func (*DocAddRemoteProviderRequest) ProtoMessage()

func (*DocAddRemoteProviderRequest) ProtoReflect

func (*DocAddRemoteProviderRequest) Reset

func (x *DocAddRemoteProviderRequest) Reset()

func (*DocAddRemoteProviderRequest) String

func (x *DocAddRemoteProviderRequest) String() string

type DocGetAllRemoteProvidersResponse

type DocGetAllRemoteProvidersResponse struct {

	// in: body
	Body *GetAllRemoteProvidersResponse `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"`
	// contains filtered or unexported fields
}

swagger:response getAllRemoteProvidersResp

func (*DocGetAllRemoteProvidersResponse) Descriptor deprecated

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

Deprecated: Use DocGetAllRemoteProvidersResponse.ProtoReflect.Descriptor instead.

func (*DocGetAllRemoteProvidersResponse) GetBody

func (*DocGetAllRemoteProvidersResponse) ProtoMessage

func (*DocGetAllRemoteProvidersResponse) ProtoMessage()

func (*DocGetAllRemoteProvidersResponse) ProtoReflect

func (*DocGetAllRemoteProvidersResponse) Reset

func (*DocGetAllRemoteProvidersResponse) String

type GetAllRemoteProvidersRequest

type GetAllRemoteProvidersRequest struct {
	Page     int32 `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty"`
	PageSize int32 `protobuf:"varint,3,opt,name=pageSize,proto3" json:"pageSize,omitempty"`
	// contains filtered or unexported fields
}

GetAllRemoteProvidersRequest model is an empty model

swagger:parameters getAllRemoteProvidersReq

func (*GetAllRemoteProvidersRequest) Descriptor deprecated

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

Deprecated: Use GetAllRemoteProvidersRequest.ProtoReflect.Descriptor instead.

func (*GetAllRemoteProvidersRequest) GetPage

func (x *GetAllRemoteProvidersRequest) GetPage() int32

func (*GetAllRemoteProvidersRequest) GetPageSize

func (x *GetAllRemoteProvidersRequest) GetPageSize() int32

func (*GetAllRemoteProvidersRequest) ProtoMessage

func (*GetAllRemoteProvidersRequest) ProtoMessage()

func (*GetAllRemoteProvidersRequest) ProtoReflect

func (*GetAllRemoteProvidersRequest) Reset

func (x *GetAllRemoteProvidersRequest) Reset()

func (*GetAllRemoteProvidersRequest) String

type GetAllRemoteProvidersResponse

type GetAllRemoteProvidersResponse struct {
	Providers []*types.RemoteProviderRecord `protobuf:"bytes,1,rep,name=providers,proto3" json:"providers,omitempty"`
	// contains filtered or unexported fields
}

GetAllRemoteProvidersResponse model for getting list of all remote context providers from the underlying storage.

func (*GetAllRemoteProvidersResponse) Descriptor deprecated

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

Deprecated: Use GetAllRemoteProvidersResponse.ProtoReflect.Descriptor instead.

func (*GetAllRemoteProvidersResponse) GetProviders

func (*GetAllRemoteProvidersResponse) ProtoMessage

func (*GetAllRemoteProvidersResponse) ProtoMessage()

func (*GetAllRemoteProvidersResponse) ProtoReflect

func (*GetAllRemoteProvidersResponse) Reset

func (x *GetAllRemoteProvidersResponse) Reset()

func (*GetAllRemoteProvidersResponse) String

type LinkedDataControllerClient

type LinkedDataControllerClient interface {
	// addContexts swagger:route POST /ld/context ld addContextsReq
	//
	// Adds JSON-LD contexts to the underlying storage.
	//
	// Responses:
	//    default: genericError
	AddContexts(ctx context.Context, in *AddContextsRequest, opts ...grpc.CallOption) (*AddContextsResponse, error)
	// addRemoteProvider swagger:route POST /ld/remote-provider ld addRemoteProviderReq
	//
	// Adds remote provider and JSON-LD contexts from that provider to the underlying storage.
	//
	// Responses:
	//    default: genericError
	AddRemoteProvider(ctx context.Context, in *AddRemoteProviderRequest, opts ...grpc.CallOption) (*AddRemoteProviderResponse, error)
	// refreshRemoteProvider swagger:route POST /ld/remote-provider/{id}/refresh ld refreshRemoteProviderReq
	//
	// Updates contexts from the remote provider.
	//
	// Responses:
	//    default: genericError
	RefreshRemoteProvider(ctx context.Context, in *RefreshRemoteProviderRequest, opts ...grpc.CallOption) (*RefreshRemoteProviderResponse, error)
	// deleteRemoteProvider swagger:route DELETE /ld/remote-provider/{id} ld deleteRemoteProviderReq
	//
	// Deletes remote provider and JSON-LD contexts from that provider from the underlying storage.
	//
	//
	// Responses:
	//    default: genericError
	DeleteRemoteProvider(ctx context.Context, in *DeleteRemoteProviderRequest, opts ...grpc.CallOption) (*DeleteRemoteProviderResponse, error)
	// getAllRemoteProviders swagger:route GET /ld/remote-providers ld getAllRemoteProvidersReq
	//
	// Gets all remote providers from the underlying storage.
	//
	// Responses:
	//    default: genericError
	//    200: getAllRemoteProvidersResp
	GetAllRemoteProviders(ctx context.Context, in *GetAllRemoteProvidersRequest, opts ...grpc.CallOption) (*GetAllRemoteProvidersResponse, error)
	// RefreshAllRemoteProviders swagger:route POST /ld/remote-providers/refresh ld refreshAllRemoteProvidersReq
	//
	// Updates contexts from all remote providers in the underlying storage.
	//
	// Responses:
	//    default: genericError
	//    200: getAllRemoteProvidersResp
	RefreshAllRemoteProviders(ctx context.Context, in *RefreshAllRemoteProvidersRequst, opts ...grpc.CallOption) (*RefreshAllRemoteProvidersResponse, error)
}

LinkedDataControllerClient is the client API for LinkedDataController service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type LinkedDataControllerServer

type LinkedDataControllerServer interface {
	// addContexts swagger:route POST /ld/context ld addContextsReq
	//
	// Adds JSON-LD contexts to the underlying storage.
	//
	// Responses:
	//    default: genericError
	AddContexts(context.Context, *AddContextsRequest) (*AddContextsResponse, error)
	// addRemoteProvider swagger:route POST /ld/remote-provider ld addRemoteProviderReq
	//
	// Adds remote provider and JSON-LD contexts from that provider to the underlying storage.
	//
	// Responses:
	//    default: genericError
	AddRemoteProvider(context.Context, *AddRemoteProviderRequest) (*AddRemoteProviderResponse, error)
	// refreshRemoteProvider swagger:route POST /ld/remote-provider/{id}/refresh ld refreshRemoteProviderReq
	//
	// Updates contexts from the remote provider.
	//
	// Responses:
	//    default: genericError
	RefreshRemoteProvider(context.Context, *RefreshRemoteProviderRequest) (*RefreshRemoteProviderResponse, error)
	// deleteRemoteProvider swagger:route DELETE /ld/remote-provider/{id} ld deleteRemoteProviderReq
	//
	// Deletes remote provider and JSON-LD contexts from that provider from the underlying storage.
	//
	//
	// Responses:
	//    default: genericError
	DeleteRemoteProvider(context.Context, *DeleteRemoteProviderRequest) (*DeleteRemoteProviderResponse, error)
	// getAllRemoteProviders swagger:route GET /ld/remote-providers ld getAllRemoteProvidersReq
	//
	// Gets all remote providers from the underlying storage.
	//
	// Responses:
	//    default: genericError
	//    200: getAllRemoteProvidersResp
	GetAllRemoteProviders(context.Context, *GetAllRemoteProvidersRequest) (*GetAllRemoteProvidersResponse, error)
	// RefreshAllRemoteProviders swagger:route POST /ld/remote-providers/refresh ld refreshAllRemoteProvidersReq
	//
	// Updates contexts from all remote providers in the underlying storage.
	//
	// Responses:
	//    default: genericError
	//    200: getAllRemoteProvidersResp
	RefreshAllRemoteProviders(context.Context, *RefreshAllRemoteProvidersRequst) (*RefreshAllRemoteProvidersResponse, error)
	// contains filtered or unexported methods
}

LinkedDataControllerServer is the server API for LinkedDataController service. All implementations must embed UnimplementedLinkedDataControllerServer for forward compatibility

type RefreshAllRemoteProvidersRequst

type RefreshAllRemoteProvidersRequst struct {
	// contains filtered or unexported fields
}

RefreshAllRemoteProvidersRequest model is an empty model

swagger:parameters refreshAllRemoteProvidersReq

func (*RefreshAllRemoteProvidersRequst) Descriptor deprecated

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

Deprecated: Use RefreshAllRemoteProvidersRequst.ProtoReflect.Descriptor instead.

func (*RefreshAllRemoteProvidersRequst) ProtoMessage

func (*RefreshAllRemoteProvidersRequst) ProtoMessage()

func (*RefreshAllRemoteProvidersRequst) ProtoReflect

func (*RefreshAllRemoteProvidersRequst) Reset

func (*RefreshAllRemoteProvidersRequst) String

type RefreshAllRemoteProvidersResponse

type RefreshAllRemoteProvidersResponse struct {
	// contains filtered or unexported fields
}

func (*RefreshAllRemoteProvidersResponse) Descriptor deprecated

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

Deprecated: Use RefreshAllRemoteProvidersResponse.ProtoReflect.Descriptor instead.

func (*RefreshAllRemoteProvidersResponse) ProtoMessage

func (*RefreshAllRemoteProvidersResponse) ProtoMessage()

func (*RefreshAllRemoteProvidersResponse) ProtoReflect

func (*RefreshAllRemoteProvidersResponse) Reset

func (*RefreshAllRemoteProvidersResponse) String

type RefreshRemoteProviderRequest

type RefreshRemoteProviderRequest struct {

	// in: path
	// required: true
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

RefreshRemoteProviderRequest model for updating JSON-LD contexts from the remote context provider.

swagger:parameters refreshRemoteProviderReq

func (*RefreshRemoteProviderRequest) Descriptor deprecated

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

Deprecated: Use RefreshRemoteProviderRequest.ProtoReflect.Descriptor instead.

func (*RefreshRemoteProviderRequest) GetId

func (*RefreshRemoteProviderRequest) ProtoMessage

func (*RefreshRemoteProviderRequest) ProtoMessage()

func (*RefreshRemoteProviderRequest) ProtoReflect

func (*RefreshRemoteProviderRequest) Reset

func (x *RefreshRemoteProviderRequest) Reset()

func (*RefreshRemoteProviderRequest) String

type RefreshRemoteProviderResponse

type RefreshRemoteProviderResponse struct {
	// contains filtered or unexported fields
}

func (*RefreshRemoteProviderResponse) Descriptor deprecated

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

Deprecated: Use RefreshRemoteProviderResponse.ProtoReflect.Descriptor instead.

func (*RefreshRemoteProviderResponse) ProtoMessage

func (*RefreshRemoteProviderResponse) ProtoMessage()

func (*RefreshRemoteProviderResponse) ProtoReflect

func (*RefreshRemoteProviderResponse) Reset

func (x *RefreshRemoteProviderResponse) Reset()

func (*RefreshRemoteProviderResponse) String

type UnimplementedLinkedDataControllerServer

type UnimplementedLinkedDataControllerServer struct {
}

UnimplementedLinkedDataControllerServer must be embedded to have forward compatible implementations.

func (UnimplementedLinkedDataControllerServer) AddContexts

func (UnimplementedLinkedDataControllerServer) AddRemoteProvider

func (UnimplementedLinkedDataControllerServer) DeleteRemoteProvider

func (UnimplementedLinkedDataControllerServer) GetAllRemoteProviders

func (UnimplementedLinkedDataControllerServer) RefreshRemoteProvider

type UnsafeLinkedDataControllerServer

type UnsafeLinkedDataControllerServer interface {
	// contains filtered or unexported methods
}

UnsafeLinkedDataControllerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to LinkedDataControllerServer will result in compilation errors.

Jump to

Keyboard shortcuts

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