applications

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2021 License: MIT Imports: 10 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Applications_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "apps.Applications",
	HandlerType: (*ApplicationsServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Create",
			Handler:    _Applications_Create_Handler,
		},
		{
			MethodName: "Get",
			Handler:    _Applications_Get_Handler,
		},
		{
			MethodName: "Update",
			Handler:    _Applications_Update_Handler,
		},
		{
			MethodName: "Delete",
			Handler:    _Applications_Delete_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "List",
			Handler:       _Applications_List_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "apps/applications/applications_v1.proto",
}

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

View Source
var File_apps_applications_applications_v1_proto protoreflect.FileDescriptor

Functions

func RegisterApplicationsServer

func RegisterApplicationsServer(s grpc.ServiceRegistrar, srv ApplicationsServer)

Types

type AppFullInfo

type AppFullInfo struct {
	Id          string                  `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`                   // UUID
	Name        string                  `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`               // Application name: Unique string
	Description string                  `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // Application brief description
	Contours    []*contours.ContourInfo `protobuf:"bytes,4,rep,name=contours,proto3" json:"contours,omitempty"`       // Map: <contour name: [services]>
	// contains filtered or unexported fields
}

* Represents an application with contours

func (*AppFullInfo) Descriptor deprecated

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

Deprecated: Use AppFullInfo.ProtoReflect.Descriptor instead.

func (*AppFullInfo) GetContours

func (x *AppFullInfo) GetContours() []*contours.ContourInfo

func (*AppFullInfo) GetDescription

func (x *AppFullInfo) GetDescription() string

func (*AppFullInfo) GetId

func (x *AppFullInfo) GetId() string

func (*AppFullInfo) GetName

func (x *AppFullInfo) GetName() string

func (*AppFullInfo) ProtoMessage

func (*AppFullInfo) ProtoMessage()

func (*AppFullInfo) ProtoReflect

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

func (*AppFullInfo) Reset

func (x *AppFullInfo) Reset()

func (*AppFullInfo) String

func (x *AppFullInfo) String() string

type AppId

type AppId struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Application id: UUID
	// contains filtered or unexported fields
}

* Represents an application UUID only

func (*AppId) Descriptor deprecated

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

Deprecated: Use AppId.ProtoReflect.Descriptor instead.

func (*AppId) GetId

func (x *AppId) GetId() string

func (*AppId) ProtoMessage

func (*AppId) ProtoMessage()

func (*AppId) ProtoReflect

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

func (*AppId) Reset

func (x *AppId) Reset()

func (*AppId) String

func (x *AppId) String() string

type AppIdAndName

type AppIdAndName struct {
	Id   string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`     // UUID
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // Application name: Unique string
	// contains filtered or unexported fields
}

* Represents an application name and id

func (*AppIdAndName) Descriptor deprecated

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

Deprecated: Use AppIdAndName.ProtoReflect.Descriptor instead.

func (*AppIdAndName) GetId

func (x *AppIdAndName) GetId() string

func (*AppIdAndName) GetName

func (x *AppIdAndName) GetName() string

func (*AppIdAndName) ProtoMessage

func (*AppIdAndName) ProtoMessage()

func (*AppIdAndName) ProtoReflect

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

func (*AppIdAndName) Reset

func (x *AppIdAndName) Reset()

func (*AppIdAndName) String

func (x *AppIdAndName) String() string

type AppNameAndDescription

type AppNameAndDescription struct {
	Name        string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`               // Application name
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` // Application brief description
	// contains filtered or unexported fields
}

* Represents an application name only

func (*AppNameAndDescription) Descriptor deprecated

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

Deprecated: Use AppNameAndDescription.ProtoReflect.Descriptor instead.

func (*AppNameAndDescription) GetDescription

func (x *AppNameAndDescription) GetDescription() string

func (*AppNameAndDescription) GetName

func (x *AppNameAndDescription) GetName() string

func (*AppNameAndDescription) ProtoMessage

func (*AppNameAndDescription) ProtoMessage()

func (*AppNameAndDescription) ProtoReflect

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

func (*AppNameAndDescription) Reset

func (x *AppNameAndDescription) Reset()

func (*AppNameAndDescription) String

func (x *AppNameAndDescription) String() string

type AppWithoutContours

type AppWithoutContours struct {
	Id          string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`                   // UUID
	Name        string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`               // Application name: Unique string
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // Application brief description
	// contains filtered or unexported fields
}

* Represents a application

func (*AppWithoutContours) Descriptor deprecated

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

Deprecated: Use AppWithoutContours.ProtoReflect.Descriptor instead.

func (*AppWithoutContours) GetDescription

func (x *AppWithoutContours) GetDescription() string

func (*AppWithoutContours) GetId

func (x *AppWithoutContours) GetId() string

func (*AppWithoutContours) GetName

func (x *AppWithoutContours) GetName() string

func (*AppWithoutContours) ProtoMessage

func (*AppWithoutContours) ProtoMessage()

func (*AppWithoutContours) ProtoReflect

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

func (*AppWithoutContours) Reset

func (x *AppWithoutContours) Reset()

func (*AppWithoutContours) String

func (x *AppWithoutContours) String() string

type ApplicationsClient

type ApplicationsClient interface {
	/// Use to add a whole new app
	Create(ctx context.Context, in *AppNameAndDescription, opts ...grpc.CallOption) (*AppWithoutContours, error)
	/// Use to get app by ProjectID
	Get(ctx context.Context, in *AppId, opts ...grpc.CallOption) (*AppFullInfo, error)
	/// Use to list all apps in db
	List(ctx context.Context, in *ListOptions, opts ...grpc.CallOption) (Applications_ListClient, error)
	/// Use to update an app (add/edit contour, edit name)
	Update(ctx context.Context, in *AppWithoutContours, opts ...grpc.CallOption) (*AppWithoutContours, error)
	/// Use to delete an app
	Delete(ctx context.Context, in *AppIdAndName, opts ...grpc.CallOption) (*common.EmptyMessage, error)
}

ApplicationsClient is the client API for Applications 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 ApplicationsServer

type ApplicationsServer interface {
	/// Use to add a whole new app
	Create(context.Context, *AppNameAndDescription) (*AppWithoutContours, error)
	/// Use to get app by ProjectID
	Get(context.Context, *AppId) (*AppFullInfo, error)
	/// Use to list all apps in db
	List(*ListOptions, Applications_ListServer) error
	/// Use to update an app (add/edit contour, edit name)
	Update(context.Context, *AppWithoutContours) (*AppWithoutContours, error)
	/// Use to delete an app
	Delete(context.Context, *AppIdAndName) (*common.EmptyMessage, error)
	// contains filtered or unexported methods
}

ApplicationsServer is the server API for Applications service. All implementations must embed UnimplementedApplicationsServer for forward compatibility

type Applications_ListClient

type Applications_ListClient interface {
	Recv() (*AppWithoutContours, error)
	grpc.ClientStream
}

type Applications_ListServer

type Applications_ListServer interface {
	Send(*AppWithoutContours) error
	grpc.ServerStream
}

type ListOptions

type ListOptions struct {
	Added bool `protobuf:"varint,1,opt,name=added,proto3" json:"added,omitempty"`
	// contains filtered or unexported fields
}

func (*ListOptions) Descriptor deprecated

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

Deprecated: Use ListOptions.ProtoReflect.Descriptor instead.

func (*ListOptions) GetAdded

func (x *ListOptions) GetAdded() bool

func (*ListOptions) ProtoMessage

func (*ListOptions) ProtoMessage()

func (*ListOptions) ProtoReflect

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

func (*ListOptions) Reset

func (x *ListOptions) Reset()

func (*ListOptions) String

func (x *ListOptions) String() string

type UnimplementedApplicationsServer

type UnimplementedApplicationsServer struct {
}

UnimplementedApplicationsServer must be embedded to have forward compatible implementations.

func (UnimplementedApplicationsServer) Create

func (UnimplementedApplicationsServer) Delete

func (UnimplementedApplicationsServer) Get

func (UnimplementedApplicationsServer) List

func (UnimplementedApplicationsServer) Update

type UnsafeApplicationsServer

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

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

Jump to

Keyboard shortcuts

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