proto

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package proto defines the midgard gRPC protocols.

Index

Constants

This section is empty.

Variables

View Source
var File_midgard_proto protoreflect.FileDescriptor
View Source
var Midgard_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "proto.Midgard",
	HandlerType: (*MidgardServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Ping",
			Handler:    _Midgard_Ping_Handler,
		},
		{
			MethodName: "AllocateURL",
			Handler:    _Midgard_AllocateURL_Handler,
		},
		{
			MethodName: "CodeToImage",
			Handler:    _Midgard_CodeToImage_Handler,
		},
		{
			MethodName: "ListDaemons",
			Handler:    _Midgard_ListDaemons_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "midgard.proto",
}

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

Functions

func RegisterMidgardServer

func RegisterMidgardServer(s grpc.ServiceRegistrar, srv MidgardServer)

Types

type AllocateURLInput

type AllocateURLInput struct {
	DesiredPath string `protobuf:"bytes,1,opt,name=DesiredPath,proto3" json:"DesiredPath,omitempty"`
	SourcePath  string `protobuf:"bytes,2,opt,name=SourcePath,proto3" json:"SourcePath,omitempty"`
	// contains filtered or unexported fields
}

func (*AllocateURLInput) Descriptor deprecated

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

Deprecated: Use AllocateURLInput.ProtoReflect.Descriptor instead.

func (*AllocateURLInput) GetDesiredPath

func (x *AllocateURLInput) GetDesiredPath() string

func (*AllocateURLInput) GetSourcePath

func (x *AllocateURLInput) GetSourcePath() string

func (*AllocateURLInput) ProtoMessage

func (*AllocateURLInput) ProtoMessage()

func (*AllocateURLInput) ProtoReflect

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

func (*AllocateURLInput) Reset

func (x *AllocateURLInput) Reset()

func (*AllocateURLInput) String

func (x *AllocateURLInput) String() string

type AllocateURLOutput

type AllocateURLOutput struct {
	URL     string `protobuf:"bytes,1,opt,name=URL,proto3" json:"URL,omitempty"`
	Message string `protobuf:"bytes,2,opt,name=Message,proto3" json:"Message,omitempty"`
	// contains filtered or unexported fields
}

func (*AllocateURLOutput) Descriptor deprecated

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

Deprecated: Use AllocateURLOutput.ProtoReflect.Descriptor instead.

func (*AllocateURLOutput) GetMessage

func (x *AllocateURLOutput) GetMessage() string

func (*AllocateURLOutput) GetURL

func (x *AllocateURLOutput) GetURL() string

func (*AllocateURLOutput) ProtoMessage

func (*AllocateURLOutput) ProtoMessage()

func (*AllocateURLOutput) ProtoReflect

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

func (*AllocateURLOutput) Reset

func (x *AllocateURLOutput) Reset()

func (*AllocateURLOutput) String

func (x *AllocateURLOutput) String() string

type CodeToImageInput

type CodeToImageInput struct {
	CodePath string `protobuf:"bytes,1,opt,name=CodePath,proto3" json:"CodePath,omitempty"`
	Start    int64  `protobuf:"varint,2,opt,name=Start,proto3" json:"Start,omitempty"`
	End      int64  `protobuf:"varint,3,opt,name=End,proto3" json:"End,omitempty"`
	// contains filtered or unexported fields
}

func (*CodeToImageInput) Descriptor deprecated

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

Deprecated: Use CodeToImageInput.ProtoReflect.Descriptor instead.

func (*CodeToImageInput) GetCodePath

func (x *CodeToImageInput) GetCodePath() string

func (*CodeToImageInput) GetEnd

func (x *CodeToImageInput) GetEnd() int64

func (*CodeToImageInput) GetStart

func (x *CodeToImageInput) GetStart() int64

func (*CodeToImageInput) ProtoMessage

func (*CodeToImageInput) ProtoMessage()

func (*CodeToImageInput) ProtoReflect

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

func (*CodeToImageInput) Reset

func (x *CodeToImageInput) Reset()

func (*CodeToImageInput) String

func (x *CodeToImageInput) String() string

type CodeToImageOutput

type CodeToImageOutput struct {
	CodeURL  string `protobuf:"bytes,1,opt,name=CodeURL,proto3" json:"CodeURL,omitempty"`
	ImageURL string `protobuf:"bytes,2,opt,name=ImageURL,proto3" json:"ImageURL,omitempty"`
	// contains filtered or unexported fields
}

func (*CodeToImageOutput) Descriptor deprecated

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

Deprecated: Use CodeToImageOutput.ProtoReflect.Descriptor instead.

func (*CodeToImageOutput) GetCodeURL

func (x *CodeToImageOutput) GetCodeURL() string

func (*CodeToImageOutput) GetImageURL

func (x *CodeToImageOutput) GetImageURL() string

func (*CodeToImageOutput) ProtoMessage

func (*CodeToImageOutput) ProtoMessage()

func (*CodeToImageOutput) ProtoReflect

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

func (*CodeToImageOutput) Reset

func (x *CodeToImageOutput) Reset()

func (*CodeToImageOutput) String

func (x *CodeToImageOutput) String() string

type ListDaemonsInput

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

func (*ListDaemonsInput) Descriptor deprecated

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

Deprecated: Use ListDaemonsInput.ProtoReflect.Descriptor instead.

func (*ListDaemonsInput) ProtoMessage

func (*ListDaemonsInput) ProtoMessage()

func (*ListDaemonsInput) ProtoReflect

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

func (*ListDaemonsInput) Reset

func (x *ListDaemonsInput) Reset()

func (*ListDaemonsInput) String

func (x *ListDaemonsInput) String() string

type ListDaemonsOutput

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

func (*ListDaemonsOutput) Descriptor deprecated

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

Deprecated: Use ListDaemonsOutput.ProtoReflect.Descriptor instead.

func (*ListDaemonsOutput) GetDaemons

func (x *ListDaemonsOutput) GetDaemons() string

func (*ListDaemonsOutput) ProtoMessage

func (*ListDaemonsOutput) ProtoMessage()

func (*ListDaemonsOutput) ProtoReflect

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

func (*ListDaemonsOutput) Reset

func (x *ListDaemonsOutput) Reset()

func (*ListDaemonsOutput) String

func (x *ListDaemonsOutput) String() string

type MidgardClient

type MidgardClient interface {
	Ping(ctx context.Context, in *PingInput, opts ...grpc.CallOption) (*PingOutput, error)
	AllocateURL(ctx context.Context, in *AllocateURLInput, opts ...grpc.CallOption) (*AllocateURLOutput, error)
	CodeToImage(ctx context.Context, in *CodeToImageInput, opts ...grpc.CallOption) (*CodeToImageOutput, error)
	ListDaemons(ctx context.Context, in *ListDaemonsInput, opts ...grpc.CallOption) (*ListDaemonsOutput, error)
}

MidgardClient is the client API for Midgard 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.

func NewMidgardClient

func NewMidgardClient(cc grpc.ClientConnInterface) MidgardClient

type MidgardServer

type MidgardServer interface {
	Ping(context.Context, *PingInput) (*PingOutput, error)
	AllocateURL(context.Context, *AllocateURLInput) (*AllocateURLOutput, error)
	CodeToImage(context.Context, *CodeToImageInput) (*CodeToImageOutput, error)
	ListDaemons(context.Context, *ListDaemonsInput) (*ListDaemonsOutput, error)
	// contains filtered or unexported methods
}

MidgardServer is the server API for Midgard service. All implementations must embed UnimplementedMidgardServer for forward compatibility

type PingInput

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

func (*PingInput) Descriptor deprecated

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

Deprecated: Use PingInput.ProtoReflect.Descriptor instead.

func (*PingInput) ProtoMessage

func (*PingInput) ProtoMessage()

func (*PingInput) ProtoReflect

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

func (*PingInput) Reset

func (x *PingInput) Reset()

func (*PingInput) String

func (x *PingInput) String() string

type PingOutput

type PingOutput struct {
	Version   string `protobuf:"bytes,1,opt,name=Version,proto3" json:"Version,omitempty"`
	GoVersion string `protobuf:"bytes,2,opt,name=GoVersion,proto3" json:"GoVersion,omitempty"`
	BuildTime string `protobuf:"bytes,3,opt,name=BuildTime,proto3" json:"BuildTime,omitempty"`
	// contains filtered or unexported fields
}

func (*PingOutput) Descriptor deprecated

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

Deprecated: Use PingOutput.ProtoReflect.Descriptor instead.

func (*PingOutput) GetBuildTime

func (x *PingOutput) GetBuildTime() string

func (*PingOutput) GetGoVersion

func (x *PingOutput) GetGoVersion() string

func (*PingOutput) GetVersion

func (x *PingOutput) GetVersion() string

func (*PingOutput) ProtoMessage

func (*PingOutput) ProtoMessage()

func (*PingOutput) ProtoReflect

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

func (*PingOutput) Reset

func (x *PingOutput) Reset()

func (*PingOutput) String

func (x *PingOutput) String() string

type UnimplementedMidgardServer

type UnimplementedMidgardServer struct {
}

UnimplementedMidgardServer must be embedded to have forward compatible implementations.

func (UnimplementedMidgardServer) AllocateURL

func (UnimplementedMidgardServer) CodeToImage

func (UnimplementedMidgardServer) ListDaemons

func (UnimplementedMidgardServer) Ping

type UnsafeMidgardServer

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

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

Jump to

Keyboard shortcuts

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