porter

package
v0.0.0-...-eb336c4 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2022 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_pkg_protos_porter_main_proto protoreflect.FileDescriptor
View Source
var Porter_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "protos.Porter",
	HandlerType: (*PorterServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ProjectAlert",
			Handler:    _Porter_ProjectAlert_Handler,
		},
		{
			MethodName: "InternalAlert",
			Handler:    _Porter_InternalAlert_Handler,
		},
		{
			MethodName: "NewIssue",
			Handler:    _Porter_NewIssue_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "pkg/protos/porter/main.proto",
}

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

Functions

func RegisterPorterServer

func RegisterPorterServer(s grpc.ServiceRegistrar, srv PorterServer)

Types

type Message

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

func (*Message) Descriptor deprecated

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

Deprecated: Use Message.ProtoReflect.Descriptor instead.

func (*Message) GetMessage

func (x *Message) GetMessage() string

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) ProtoReflect

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

func (*Message) Reset

func (x *Message) Reset()

func (*Message) String

func (x *Message) String() string

type NewIssueRequest

type NewIssueRequest struct {
	Project   string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
	Key       string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
	Timestamp string `protobuf:"bytes,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Env       string `protobuf:"bytes,4,opt,name=env,proto3" json:"env,omitempty"`
	Service   string `protobuf:"bytes,5,opt,name=service,proto3" json:"service,omitempty"`
	Flag      string `protobuf:"bytes,6,opt,name=flag,proto3" json:"flag,omitempty"`
	// contains filtered or unexported fields
}

func (*NewIssueRequest) Descriptor deprecated

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

Deprecated: Use NewIssueRequest.ProtoReflect.Descriptor instead.

func (*NewIssueRequest) GetEnv

func (x *NewIssueRequest) GetEnv() string

func (*NewIssueRequest) GetFlag

func (x *NewIssueRequest) GetFlag() string

func (*NewIssueRequest) GetKey

func (x *NewIssueRequest) GetKey() string

func (*NewIssueRequest) GetProject

func (x *NewIssueRequest) GetProject() string

func (*NewIssueRequest) GetService

func (x *NewIssueRequest) GetService() string

func (*NewIssueRequest) GetTimestamp

func (x *NewIssueRequest) GetTimestamp() string

func (*NewIssueRequest) ProtoMessage

func (*NewIssueRequest) ProtoMessage()

func (*NewIssueRequest) ProtoReflect

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

func (*NewIssueRequest) Reset

func (x *NewIssueRequest) Reset()

func (*NewIssueRequest) String

func (x *NewIssueRequest) String() string

type PorterClient

type PorterClient interface {
	ProjectAlert(ctx context.Context, in *ProjectAlertRequest, opts ...grpc.CallOption) (*Message, error)
	InternalAlert(ctx context.Context, in *Message, opts ...grpc.CallOption) (*Message, error)
	NewIssue(ctx context.Context, in *NewIssueRequest, opts ...grpc.CallOption) (*Message, error)
}

PorterClient is the client API for Porter 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 NewPorterClient

func NewPorterClient(cc grpc.ClientConnInterface) PorterClient

type PorterServer

type PorterServer interface {
	ProjectAlert(context.Context, *ProjectAlertRequest) (*Message, error)
	InternalAlert(context.Context, *Message) (*Message, error)
	NewIssue(context.Context, *NewIssueRequest) (*Message, error)
	// contains filtered or unexported methods
}

PorterServer is the server API for Porter service. All implementations must embed UnimplementedPorterServer for forward compatibility

type ProjectAlertRequest

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

func (*ProjectAlertRequest) Descriptor deprecated

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

Deprecated: Use ProjectAlertRequest.ProtoReflect.Descriptor instead.

func (*ProjectAlertRequest) GetMessage

func (x *ProjectAlertRequest) GetMessage() string

func (*ProjectAlertRequest) GetProject

func (x *ProjectAlertRequest) GetProject() string

func (*ProjectAlertRequest) ProtoMessage

func (*ProjectAlertRequest) ProtoMessage()

func (*ProjectAlertRequest) ProtoReflect

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

func (*ProjectAlertRequest) Reset

func (x *ProjectAlertRequest) Reset()

func (*ProjectAlertRequest) String

func (x *ProjectAlertRequest) String() string

type UnimplementedPorterServer

type UnimplementedPorterServer struct {
}

UnimplementedPorterServer must be embedded to have forward compatible implementations.

func (UnimplementedPorterServer) InternalAlert

func (UnimplementedPorterServer) NewIssue

func (UnimplementedPorterServer) ProjectAlert

type UnsafePorterServer

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

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

Jump to

Keyboard shortcuts

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