common

package
v0.1.6-rc0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_api_domain_common_messages_proto protoreflect.FileDescriptor
View Source
var File_api_domain_common_service_proto protoreflect.FileDescriptor
View Source
var ServiceInformationService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "common.ServiceInformationService",
	HandlerType: (*ServiceInformationServiceServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "GetServiceInformation",
			Handler:       _ServiceInformationService_GetServiceInformation_Handler,
			ServerStreams: true,
		},
	},
	Metadata: "api/domain/common/service.proto",
}

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

Functions

func RegisterServiceInformationServiceServer

func RegisterServiceInformationServiceServer(s grpc.ServiceRegistrar, srv ServiceInformationServiceServer)

Types

type CertificateChain

type CertificateChain struct {

	// CA Certificate
	Ca []byte `protobuf:"bytes,1,opt,name=ca,proto3" json:"ca,omitempty"`
	// Certificate
	Certificate []byte `protobuf:"bytes,2,opt,name=certificate,proto3" json:"certificate,omitempty"`
	// contains filtered or unexported fields
}

Chain of certificates

func (*CertificateChain) Descriptor deprecated

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

Deprecated: Use CertificateChain.ProtoReflect.Descriptor instead.

func (*CertificateChain) GetCa

func (x *CertificateChain) GetCa() []byte

func (*CertificateChain) GetCertificate

func (x *CertificateChain) GetCertificate() []byte

func (*CertificateChain) ProtoMessage

func (*CertificateChain) ProtoMessage()

func (*CertificateChain) ProtoReflect

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

func (*CertificateChain) Reset

func (x *CertificateChain) Reset()

func (*CertificateChain) String

func (x *CertificateChain) String() string

type ServiceInformation

type ServiceInformation struct {

	// version
	Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
	// name
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// commit hash of the service
	Commit string `protobuf:"bytes,3,opt,name=commit,proto3" json:"commit,omitempty"`
	// contains filtered or unexported fields
}

ServiceInformation are the version and commit hash of a service

func (*ServiceInformation) Descriptor deprecated

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

Deprecated: Use ServiceInformation.ProtoReflect.Descriptor instead.

func (*ServiceInformation) GetCommit

func (x *ServiceInformation) GetCommit() string

func (*ServiceInformation) GetName

func (x *ServiceInformation) GetName() string

func (*ServiceInformation) GetVersion

func (x *ServiceInformation) GetVersion() string

func (*ServiceInformation) ProtoMessage

func (*ServiceInformation) ProtoMessage()

func (*ServiceInformation) ProtoReflect

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

func (*ServiceInformation) Reset

func (x *ServiceInformation) Reset()

func (*ServiceInformation) String

func (x *ServiceInformation) String() string

type ServiceInformationServiceClient

type ServiceInformationServiceClient interface {
	// Get information about the service. This can include information for other
	// services additionally.
	GetServiceInformation(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (ServiceInformationService_GetServiceInformationClient, error)
}

ServiceInformationServiceClient is the client API for ServiceInformationService 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 ServiceInformationServiceServer

type ServiceInformationServiceServer interface {
	// Get information about the service. This can include information for other
	// services additionally.
	GetServiceInformation(*emptypb.Empty, ServiceInformationService_GetServiceInformationServer) error
	// contains filtered or unexported methods
}

ServiceInformationServiceServer is the server API for ServiceInformationService service. All implementations must embed UnimplementedServiceInformationServiceServer for forward compatibility

type ServiceInformationService_GetServiceInformationClient

type ServiceInformationService_GetServiceInformationClient interface {
	Recv() (*ServiceInformation, error)
	grpc.ClientStream
}

type ServiceInformationService_GetServiceInformationServer

type ServiceInformationService_GetServiceInformationServer interface {
	Send(*ServiceInformation) error
	grpc.ServerStream
}

type UnimplementedServiceInformationServiceServer

type UnimplementedServiceInformationServiceServer struct {
}

UnimplementedServiceInformationServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedServiceInformationServiceServer) GetServiceInformation

type UnsafeServiceInformationServiceServer

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

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

Jump to

Keyboard shortcuts

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