pb

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_pb_procjon_proto protoreflect.FileDescriptor

Functions

func RegisterProcjonServer

func RegisterProcjonServer(s grpc.ServiceRegistrar, srv ProcjonServer)

Types

type Empty

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

func (*Empty) Descriptor deprecated

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

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

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

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

type ProcjonClient

type ProcjonClient interface {
	RegisterService(ctx context.Context, in *Service, opts ...grpc.CallOption) (*Empty, error)
	SendServiceStatus(ctx context.Context, opts ...grpc.CallOption) (Procjon_SendServiceStatusClient, error)
}

ProcjonClient is the client API for Procjon 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 NewProcjonClient

func NewProcjonClient(cc grpc.ClientConnInterface) ProcjonClient

type ProcjonServer

type ProcjonServer interface {
	RegisterService(context.Context, *Service) (*Empty, error)
	SendServiceStatus(Procjon_SendServiceStatusServer) error
	// contains filtered or unexported methods
}

ProcjonServer is the server API for Procjon service. All implementations must embed UnimplementedProcjonServer for forward compatibility

type Procjon_SendServiceStatusClient

type Procjon_SendServiceStatusClient interface {
	Send(*ServiceStatus) error
	CloseAndRecv() (*Empty, error)
	grpc.ClientStream
}

type Procjon_SendServiceStatusServer

type Procjon_SendServiceStatusServer interface {
	SendAndClose(*Empty) error
	Recv() (*ServiceStatus, error)
	grpc.ServerStream
}

type Service

type Service struct {
	Identifier string   `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"`
	Statuses   []string `protobuf:"bytes,2,rep,name=statuses,proto3" json:"statuses,omitempty"`
	Timeout    uint32   `protobuf:"varint,3,opt,name=timeout,proto3" json:"timeout,omitempty"`
	// contains filtered or unexported fields
}

func (*Service) Descriptor deprecated

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

Deprecated: Use Service.ProtoReflect.Descriptor instead.

func (*Service) GetIdentifier

func (x *Service) GetIdentifier() string

func (*Service) GetStatuses

func (x *Service) GetStatuses() []string

func (*Service) GetTimeout

func (x *Service) GetTimeout() uint32

func (*Service) ProtoMessage

func (*Service) ProtoMessage()

func (*Service) ProtoReflect

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

func (*Service) Reset

func (x *Service) Reset()

func (*Service) String

func (x *Service) String() string

type ServiceStatus

type ServiceStatus struct {
	Identifier string `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"`
	StatusCode uint32 `protobuf:"varint,2,opt,name=statusCode,proto3" json:"statusCode,omitempty"`
	// contains filtered or unexported fields
}

func (*ServiceStatus) Descriptor deprecated

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

Deprecated: Use ServiceStatus.ProtoReflect.Descriptor instead.

func (*ServiceStatus) GetIdentifier

func (x *ServiceStatus) GetIdentifier() string

func (*ServiceStatus) GetStatusCode

func (x *ServiceStatus) GetStatusCode() uint32

func (*ServiceStatus) ProtoMessage

func (*ServiceStatus) ProtoMessage()

func (*ServiceStatus) ProtoReflect

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

func (*ServiceStatus) Reset

func (x *ServiceStatus) Reset()

func (*ServiceStatus) String

func (x *ServiceStatus) String() string

type UnimplementedProcjonServer

type UnimplementedProcjonServer struct {
}

UnimplementedProcjonServer must be embedded to have forward compatible implementations.

func (UnimplementedProcjonServer) RegisterService

func (UnimplementedProcjonServer) SendServiceStatus

type UnsafeProcjonServer

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

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

Jump to

Keyboard shortcuts

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