api

package
v0.0.0-...-ba3d7d1 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package api is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var File_api_proto_api_proto protoreflect.FileDescriptor

Functions

func RegisterFitsServiceHandler

func RegisterFitsServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterFitsServiceHandler registers the http handlers for service FitsService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterFitsServiceHandlerClient

func RegisterFitsServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client FitsServiceClient) error

RegisterFitsServiceHandlerClient registers the http handlers for service FitsService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "FitsServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "FitsServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "FitsServiceClient" to call the correct interceptors.

func RegisterFitsServiceHandlerFromEndpoint

func RegisterFitsServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterFitsServiceHandlerFromEndpoint is same as RegisterFitsServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterFitsServiceHandlerServer

func RegisterFitsServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server FitsServiceServer) error

RegisterFitsServiceHandlerServer registers the http handlers for service FitsService to "mux". UnaryRPC :call FitsServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.

func RegisterFitsServiceServer

func RegisterFitsServiceServer(s *grpc.Server, srv FitsServiceServer)

Types

type FitsServiceClient

type FitsServiceClient interface {
	GetMovie(ctx context.Context, in *GetMovieRequest, opts ...grpc.CallOption) (*GetMovieResponse, error)
	GetMosaic(ctx context.Context, in *GetMosaicRequest, opts ...grpc.CallOption) (*GetMosaicResponse, error)
	GetFitsFiles(ctx context.Context, in *GetFitsFilesRequest, opts ...grpc.CallOption) (*GetFitsFilesResponse, error)
	UploadFitsFiles(ctx context.Context, in *UploadFitsFilesRequest, opts ...grpc.CallOption) (*UploadFitsFilesResponse, error)
	TestClient(ctx context.Context, in *TestClientRequest, opts ...grpc.CallOption) (*TestClientResponse, error)
}

FitsServiceClient is the client API for FitsService service.

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

type FitsServiceServer

FitsServiceServer is the server API for FitsService service.

type GetFitsFilesRequest

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

func (*GetFitsFilesRequest) Descriptor deprecated

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

Deprecated: Use GetFitsFilesRequest.ProtoReflect.Descriptor instead.

func (*GetFitsFilesRequest) GetData

func (x *GetFitsFilesRequest) GetData() string

func (*GetFitsFilesRequest) ProtoMessage

func (*GetFitsFilesRequest) ProtoMessage()

func (*GetFitsFilesRequest) ProtoReflect

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

func (*GetFitsFilesRequest) Reset

func (x *GetFitsFilesRequest) Reset()

func (*GetFitsFilesRequest) String

func (x *GetFitsFilesRequest) String() string

type GetFitsFilesResponse

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

func (*GetFitsFilesResponse) Descriptor deprecated

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

Deprecated: Use GetFitsFilesResponse.ProtoReflect.Descriptor instead.

func (*GetFitsFilesResponse) GetMetadata

func (x *GetFitsFilesResponse) GetMetadata() string

func (*GetFitsFilesResponse) ProtoMessage

func (*GetFitsFilesResponse) ProtoMessage()

func (*GetFitsFilesResponse) ProtoReflect

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

func (*GetFitsFilesResponse) Reset

func (x *GetFitsFilesResponse) Reset()

func (*GetFitsFilesResponse) String

func (x *GetFitsFilesResponse) String() string

type GetMosaicRequest

type GetMosaicRequest struct {
	FilePath string `protobuf:"bytes,1,opt,name=filePath,proto3" json:"filePath,omitempty"`
	Count    string `protobuf:"bytes,2,opt,name=count,proto3" json:"count,omitempty"`
	// contains filtered or unexported fields
}

func (*GetMosaicRequest) Descriptor deprecated

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

Deprecated: Use GetMosaicRequest.ProtoReflect.Descriptor instead.

func (*GetMosaicRequest) GetCount

func (x *GetMosaicRequest) GetCount() string

func (*GetMosaicRequest) GetFilePath

func (x *GetMosaicRequest) GetFilePath() string

func (*GetMosaicRequest) ProtoMessage

func (*GetMosaicRequest) ProtoMessage()

func (*GetMosaicRequest) ProtoReflect

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

func (*GetMosaicRequest) Reset

func (x *GetMosaicRequest) Reset()

func (*GetMosaicRequest) String

func (x *GetMosaicRequest) String() string

type GetMosaicResponse

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

func (*GetMosaicResponse) Descriptor deprecated

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

Deprecated: Use GetMosaicResponse.ProtoReflect.Descriptor instead.

func (*GetMosaicResponse) GetMosLoc

func (x *GetMosaicResponse) GetMosLoc() string

func (*GetMosaicResponse) ProtoMessage

func (*GetMosaicResponse) ProtoMessage()

func (*GetMosaicResponse) ProtoReflect

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

func (*GetMosaicResponse) Reset

func (x *GetMosaicResponse) Reset()

func (*GetMosaicResponse) String

func (x *GetMosaicResponse) String() string

type GetMovieRequest

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

func (*GetMovieRequest) Descriptor deprecated

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

Deprecated: Use GetMovieRequest.ProtoReflect.Descriptor instead.

func (*GetMovieRequest) GetFilePath

func (x *GetMovieRequest) GetFilePath() string

func (*GetMovieRequest) ProtoMessage

func (*GetMovieRequest) ProtoMessage()

func (*GetMovieRequest) ProtoReflect

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

func (*GetMovieRequest) Reset

func (x *GetMovieRequest) Reset()

func (*GetMovieRequest) String

func (x *GetMovieRequest) String() string

type GetMovieResponse

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

func (*GetMovieResponse) Descriptor deprecated

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

Deprecated: Use GetMovieResponse.ProtoReflect.Descriptor instead.

func (*GetMovieResponse) GetMovLoc

func (x *GetMovieResponse) GetMovLoc() string

func (*GetMovieResponse) ProtoMessage

func (*GetMovieResponse) ProtoMessage()

func (*GetMovieResponse) ProtoReflect

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

func (*GetMovieResponse) Reset

func (x *GetMovieResponse) Reset()

func (*GetMovieResponse) String

func (x *GetMovieResponse) String() string

type TestClientRequest

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

func (*TestClientRequest) Descriptor deprecated

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

Deprecated: Use TestClientRequest.ProtoReflect.Descriptor instead.

func (*TestClientRequest) GetMsg

func (x *TestClientRequest) GetMsg() string

func (*TestClientRequest) ProtoMessage

func (*TestClientRequest) ProtoMessage()

func (*TestClientRequest) ProtoReflect

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

func (*TestClientRequest) Reset

func (x *TestClientRequest) Reset()

func (*TestClientRequest) String

func (x *TestClientRequest) String() string

type TestClientResponse

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

func (*TestClientResponse) Descriptor deprecated

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

Deprecated: Use TestClientResponse.ProtoReflect.Descriptor instead.

func (*TestClientResponse) GetMsg

func (x *TestClientResponse) GetMsg() string

func (*TestClientResponse) ProtoMessage

func (*TestClientResponse) ProtoMessage()

func (*TestClientResponse) ProtoReflect

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

func (*TestClientResponse) Reset

func (x *TestClientResponse) Reset()

func (*TestClientResponse) String

func (x *TestClientResponse) String() string

type UnimplementedFitsServiceServer

type UnimplementedFitsServiceServer struct {
}

UnimplementedFitsServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedFitsServiceServer) GetFitsFiles

func (*UnimplementedFitsServiceServer) GetMosaic

func (*UnimplementedFitsServiceServer) GetMovie

func (*UnimplementedFitsServiceServer) TestClient

func (*UnimplementedFitsServiceServer) UploadFitsFiles

type UploadFitsFilesRequest

type UploadFitsFilesRequest struct {
	Name        string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	FileContent string `protobuf:"bytes,2,opt,name=fileContent,proto3" json:"fileContent,omitempty"`
	// contains filtered or unexported fields
}

func (*UploadFitsFilesRequest) Descriptor deprecated

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

Deprecated: Use UploadFitsFilesRequest.ProtoReflect.Descriptor instead.

func (*UploadFitsFilesRequest) GetFileContent

func (x *UploadFitsFilesRequest) GetFileContent() string

func (*UploadFitsFilesRequest) GetName

func (x *UploadFitsFilesRequest) GetName() string

func (*UploadFitsFilesRequest) ProtoMessage

func (*UploadFitsFilesRequest) ProtoMessage()

func (*UploadFitsFilesRequest) ProtoReflect

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

func (*UploadFitsFilesRequest) Reset

func (x *UploadFitsFilesRequest) Reset()

func (*UploadFitsFilesRequest) String

func (x *UploadFitsFilesRequest) String() string

type UploadFitsFilesResponse

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

func (*UploadFitsFilesResponse) Descriptor deprecated

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

Deprecated: Use UploadFitsFilesResponse.ProtoReflect.Descriptor instead.

func (*UploadFitsFilesResponse) GetMetadata

func (x *UploadFitsFilesResponse) GetMetadata() string

func (*UploadFitsFilesResponse) ProtoMessage

func (*UploadFitsFilesResponse) ProtoMessage()

func (*UploadFitsFilesResponse) ProtoReflect

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

func (*UploadFitsFilesResponse) Reset

func (x *UploadFitsFilesResponse) Reset()

func (*UploadFitsFilesResponse) String

func (x *UploadFitsFilesResponse) String() string

Jump to

Keyboard shortcuts

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