Documentation ¶
Overview ¶
Package api has message structs
Index ¶
- Variables
- func RegisterLocalizerServiceServer(s *grpc.Server, srv LocalizerServiceServer)
- type ConsoleLevel
- func (ConsoleLevel) Descriptor() protoreflect.EnumDescriptor
- func (x ConsoleLevel) Enum() *ConsoleLevel
- func (ConsoleLevel) EnumDescriptor() ([]byte, []int)deprecated
- func (x ConsoleLevel) Number() protoreflect.EnumNumber
- func (x ConsoleLevel) String() string
- func (ConsoleLevel) Type() protoreflect.EnumType
- type ConsoleResponse
- func (*ConsoleResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ConsoleResponse) GetLevel() ConsoleLevel
- func (x *ConsoleResponse) GetMessage() string
- func (*ConsoleResponse) ProtoMessage()
- func (x *ConsoleResponse) ProtoReflect() protoreflect.Message
- func (x *ConsoleResponse) Reset()
- func (x *ConsoleResponse) String() string
- type Empty
- type ExposeServiceRequest
- func (*ExposeServiceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ExposeServiceRequest) GetNamespace() string
- func (x *ExposeServiceRequest) GetPortMap() []string
- func (x *ExposeServiceRequest) GetService() string
- func (*ExposeServiceRequest) ProtoMessage()
- func (x *ExposeServiceRequest) ProtoReflect() protoreflect.Message
- func (x *ExposeServiceRequest) Reset()
- func (x *ExposeServiceRequest) String() string
- type ListRequest
- type ListResponse
- type ListService
- func (*ListService) Descriptor() ([]byte, []int)deprecated
- func (x *ListService) GetEndpoint() string
- func (x *ListService) GetIp() string
- func (x *ListService) GetName() string
- func (x *ListService) GetNamespace() string
- func (x *ListService) GetPorts() []string
- func (x *ListService) GetStatus() string
- func (x *ListService) GetStatusReason() string
- func (*ListService) ProtoMessage()
- func (x *ListService) ProtoReflect() protoreflect.Message
- func (x *ListService) Reset()
- func (x *ListService) String() string
- type LocalizerServiceClient
- type LocalizerServiceServer
- type LocalizerService_ExposeServiceClient
- type LocalizerService_ExposeServiceServer
- type LocalizerService_StopExposeClient
- type LocalizerService_StopExposeServer
- type PingRequest
- type PingResponse
- type StableResponse
- type StopExposeRequest
- func (*StopExposeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *StopExposeRequest) GetNamespace() string
- func (x *StopExposeRequest) GetService() string
- func (*StopExposeRequest) ProtoMessage()
- func (x *StopExposeRequest) ProtoReflect() protoreflect.Message
- func (x *StopExposeRequest) Reset()
- func (x *StopExposeRequest) String() string
- type UnimplementedLocalizerServiceServer
- func (*UnimplementedLocalizerServiceServer) ExposeService(*ExposeServiceRequest, LocalizerService_ExposeServiceServer) error
- func (*UnimplementedLocalizerServiceServer) Kill(context.Context, *Empty) (*Empty, error)
- func (*UnimplementedLocalizerServiceServer) List(context.Context, *ListRequest) (*ListResponse, error)
- func (*UnimplementedLocalizerServiceServer) Ping(context.Context, *PingRequest) (*PingResponse, error)
- func (*UnimplementedLocalizerServiceServer) Stable(context.Context, *Empty) (*StableResponse, error)
- func (*UnimplementedLocalizerServiceServer) StopExpose(*StopExposeRequest, LocalizerService_StopExposeServer) error
Constants ¶
This section is empty.
Variables ¶
var ( ConsoleLevel_name = map[int32]string{ 0: "CONSOLE_LEVEL_UNSPECIFIED", 1: "CONSOLE_LEVEL_INFO", 2: "CONSOLE_LEVEL_WARN", 3: "CONSOLE_LEVEL_ERROR", } ConsoleLevel_value = map[string]int32{ "CONSOLE_LEVEL_UNSPECIFIED": 0, "CONSOLE_LEVEL_INFO": 1, "CONSOLE_LEVEL_WARN": 2, "CONSOLE_LEVEL_ERROR": 3, } )
Enum value maps for ConsoleLevel.
var File_v1_proto protoreflect.FileDescriptor
Functions ¶
func RegisterLocalizerServiceServer ¶
func RegisterLocalizerServiceServer(s *grpc.Server, srv LocalizerServiceServer)
Types ¶
type ConsoleLevel ¶
type ConsoleLevel int32
const ( ConsoleLevel_CONSOLE_LEVEL_UNSPECIFIED ConsoleLevel = 0 ConsoleLevel_CONSOLE_LEVEL_INFO ConsoleLevel = 1 ConsoleLevel_CONSOLE_LEVEL_WARN ConsoleLevel = 2 ConsoleLevel_CONSOLE_LEVEL_ERROR ConsoleLevel = 3 )
func (ConsoleLevel) Descriptor ¶
func (ConsoleLevel) Descriptor() protoreflect.EnumDescriptor
func (ConsoleLevel) Enum ¶
func (x ConsoleLevel) Enum() *ConsoleLevel
func (ConsoleLevel) EnumDescriptor
deprecated
func (ConsoleLevel) EnumDescriptor() ([]byte, []int)
Deprecated: Use ConsoleLevel.Descriptor instead.
func (ConsoleLevel) Number ¶
func (x ConsoleLevel) Number() protoreflect.EnumNumber
func (ConsoleLevel) String ¶
func (x ConsoleLevel) String() string
func (ConsoleLevel) Type ¶
func (ConsoleLevel) Type() protoreflect.EnumType
type ConsoleResponse ¶
type ConsoleResponse struct { // Output level of this console output Level ConsoleLevel `protobuf:"varint,1,opt,name=level,proto3,enum=api.v1.ConsoleLevel" json:"level,omitempty"` // Message of this console output Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
This will be turned into ConsoleResponse to be generic probably some time later in the future.
func (*ConsoleResponse) Descriptor
deprecated
func (*ConsoleResponse) Descriptor() ([]byte, []int)
Deprecated: Use ConsoleResponse.ProtoReflect.Descriptor instead.
func (*ConsoleResponse) GetLevel ¶
func (x *ConsoleResponse) GetLevel() ConsoleLevel
func (*ConsoleResponse) GetMessage ¶
func (x *ConsoleResponse) GetMessage() string
func (*ConsoleResponse) ProtoMessage ¶
func (*ConsoleResponse) ProtoMessage()
func (*ConsoleResponse) ProtoReflect ¶
func (x *ConsoleResponse) ProtoReflect() protoreflect.Message
func (*ConsoleResponse) Reset ¶
func (x *ConsoleResponse) Reset()
func (*ConsoleResponse) String ¶
func (x *ConsoleResponse) String() string
type Empty ¶
type Empty struct {
// contains filtered or unexported fields
}
func (*Empty) Descriptor
deprecated
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
type ExposeServiceRequest ¶
type ExposeServiceRequest struct { Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` Service string `protobuf:"bytes,2,opt,name=service,proto3" json:"service,omitempty"` PortMap []string `protobuf:"bytes,3,rep,name=port_map,json=portMap,proto3" json:"port_map,omitempty"` // contains filtered or unexported fields }
func (*ExposeServiceRequest) Descriptor
deprecated
func (*ExposeServiceRequest) Descriptor() ([]byte, []int)
Deprecated: Use ExposeServiceRequest.ProtoReflect.Descriptor instead.
func (*ExposeServiceRequest) GetNamespace ¶
func (x *ExposeServiceRequest) GetNamespace() string
func (*ExposeServiceRequest) GetPortMap ¶
func (x *ExposeServiceRequest) GetPortMap() []string
func (*ExposeServiceRequest) GetService ¶
func (x *ExposeServiceRequest) GetService() string
func (*ExposeServiceRequest) ProtoMessage ¶
func (*ExposeServiceRequest) ProtoMessage()
func (*ExposeServiceRequest) ProtoReflect ¶
func (x *ExposeServiceRequest) ProtoReflect() protoreflect.Message
func (*ExposeServiceRequest) Reset ¶
func (x *ExposeServiceRequest) Reset()
func (*ExposeServiceRequest) String ¶
func (x *ExposeServiceRequest) String() string
type ListRequest ¶
type ListRequest struct {
// contains filtered or unexported fields
}
func (*ListRequest) Descriptor
deprecated
func (*ListRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.
func (*ListRequest) ProtoMessage ¶
func (*ListRequest) ProtoMessage()
func (*ListRequest) ProtoReflect ¶
func (x *ListRequest) ProtoReflect() protoreflect.Message
func (*ListRequest) Reset ¶
func (x *ListRequest) Reset()
func (*ListRequest) String ¶
func (x *ListRequest) String() string
type ListResponse ¶
type ListResponse struct { Services []*ListService `protobuf:"bytes,1,rep,name=services,proto3" json:"services,omitempty"` // contains filtered or unexported fields }
func (*ListResponse) Descriptor
deprecated
func (*ListResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListResponse.ProtoReflect.Descriptor instead.
func (*ListResponse) GetServices ¶
func (x *ListResponse) GetServices() []*ListService
func (*ListResponse) ProtoMessage ¶
func (*ListResponse) ProtoMessage()
func (*ListResponse) ProtoReflect ¶
func (x *ListResponse) ProtoReflect() protoreflect.Message
func (*ListResponse) Reset ¶
func (x *ListResponse) Reset()
func (*ListResponse) String ¶
func (x *ListResponse) String() string
type ListService ¶
type ListService struct { Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Status string `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` Endpoint string `protobuf:"bytes,4,opt,name=endpoint,proto3" json:"endpoint,omitempty"` StatusReason string `protobuf:"bytes,5,opt,name=status_reason,json=statusReason,proto3" json:"status_reason,omitempty"` Ip string `protobuf:"bytes,6,opt,name=ip,proto3" json:"ip,omitempty"` Ports []string `protobuf:"bytes,7,rep,name=ports,proto3" json:"ports,omitempty"` // contains filtered or unexported fields }
func (*ListService) Descriptor
deprecated
func (*ListService) Descriptor() ([]byte, []int)
Deprecated: Use ListService.ProtoReflect.Descriptor instead.
func (*ListService) GetEndpoint ¶
func (x *ListService) GetEndpoint() string
func (*ListService) GetIp ¶
func (x *ListService) GetIp() string
func (*ListService) GetName ¶
func (x *ListService) GetName() string
func (*ListService) GetNamespace ¶
func (x *ListService) GetNamespace() string
func (*ListService) GetPorts ¶
func (x *ListService) GetPorts() []string
func (*ListService) GetStatus ¶
func (x *ListService) GetStatus() string
func (*ListService) GetStatusReason ¶
func (x *ListService) GetStatusReason() string
func (*ListService) ProtoMessage ¶
func (*ListService) ProtoMessage()
func (*ListService) ProtoReflect ¶
func (x *ListService) ProtoReflect() protoreflect.Message
func (*ListService) Reset ¶
func (x *ListService) Reset()
func (*ListService) String ¶
func (x *ListService) String() string
type LocalizerServiceClient ¶
type LocalizerServiceClient interface { ExposeService(ctx context.Context, in *ExposeServiceRequest, opts ...grpc.CallOption) (LocalizerService_ExposeServiceClient, error) StopExpose(ctx context.Context, in *StopExposeRequest, opts ...grpc.CallOption) (LocalizerService_StopExposeClient, error) List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error) Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*PingResponse, error) Kill(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error) Stable(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*StableResponse, error) }
LocalizerServiceClient is the client API for LocalizerService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewLocalizerServiceClient ¶
func NewLocalizerServiceClient(cc grpc.ClientConnInterface) LocalizerServiceClient
type LocalizerServiceServer ¶
type LocalizerServiceServer interface { ExposeService(*ExposeServiceRequest, LocalizerService_ExposeServiceServer) error StopExpose(*StopExposeRequest, LocalizerService_StopExposeServer) error List(context.Context, *ListRequest) (*ListResponse, error) Ping(context.Context, *PingRequest) (*PingResponse, error) Kill(context.Context, *Empty) (*Empty, error) Stable(context.Context, *Empty) (*StableResponse, error) }
LocalizerServiceServer is the server API for LocalizerService service.
type LocalizerService_ExposeServiceClient ¶
type LocalizerService_ExposeServiceClient interface { Recv() (*ConsoleResponse, error) grpc.ClientStream }
type LocalizerService_ExposeServiceServer ¶
type LocalizerService_ExposeServiceServer interface { Send(*ConsoleResponse) error grpc.ServerStream }
type LocalizerService_StopExposeClient ¶
type LocalizerService_StopExposeClient interface { Recv() (*ConsoleResponse, error) grpc.ClientStream }
type LocalizerService_StopExposeServer ¶
type LocalizerService_StopExposeServer interface { Send(*ConsoleResponse) error grpc.ServerStream }
type PingRequest ¶
type PingRequest struct {
// contains filtered or unexported fields
}
func (*PingRequest) Descriptor
deprecated
func (*PingRequest) Descriptor() ([]byte, []int)
Deprecated: Use PingRequest.ProtoReflect.Descriptor instead.
func (*PingRequest) ProtoMessage ¶
func (*PingRequest) ProtoMessage()
func (*PingRequest) ProtoReflect ¶
func (x *PingRequest) ProtoReflect() protoreflect.Message
func (*PingRequest) Reset ¶
func (x *PingRequest) Reset()
func (*PingRequest) String ¶
func (x *PingRequest) String() string
type PingResponse ¶
type PingResponse struct {
// contains filtered or unexported fields
}
func (*PingResponse) Descriptor
deprecated
func (*PingResponse) Descriptor() ([]byte, []int)
Deprecated: Use PingResponse.ProtoReflect.Descriptor instead.
func (*PingResponse) ProtoMessage ¶
func (*PingResponse) ProtoMessage()
func (*PingResponse) ProtoReflect ¶
func (x *PingResponse) ProtoReflect() protoreflect.Message
func (*PingResponse) Reset ¶
func (x *PingResponse) Reset()
func (*PingResponse) String ¶
func (x *PingResponse) String() string
type StableResponse ¶
type StableResponse struct { Stable bool `protobuf:"varint,1,opt,name=stable,proto3" json:"stable,omitempty"` // contains filtered or unexported fields }
func (*StableResponse) Descriptor
deprecated
func (*StableResponse) Descriptor() ([]byte, []int)
Deprecated: Use StableResponse.ProtoReflect.Descriptor instead.
func (*StableResponse) GetStable ¶
func (x *StableResponse) GetStable() bool
func (*StableResponse) ProtoMessage ¶
func (*StableResponse) ProtoMessage()
func (*StableResponse) ProtoReflect ¶
func (x *StableResponse) ProtoReflect() protoreflect.Message
func (*StableResponse) Reset ¶
func (x *StableResponse) Reset()
func (*StableResponse) String ¶
func (x *StableResponse) String() string
type StopExposeRequest ¶
type StopExposeRequest struct { Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` Service string `protobuf:"bytes,2,opt,name=service,proto3" json:"service,omitempty"` // contains filtered or unexported fields }
func (*StopExposeRequest) Descriptor
deprecated
func (*StopExposeRequest) Descriptor() ([]byte, []int)
Deprecated: Use StopExposeRequest.ProtoReflect.Descriptor instead.
func (*StopExposeRequest) GetNamespace ¶
func (x *StopExposeRequest) GetNamespace() string
func (*StopExposeRequest) GetService ¶
func (x *StopExposeRequest) GetService() string
func (*StopExposeRequest) ProtoMessage ¶
func (*StopExposeRequest) ProtoMessage()
func (*StopExposeRequest) ProtoReflect ¶
func (x *StopExposeRequest) ProtoReflect() protoreflect.Message
func (*StopExposeRequest) Reset ¶
func (x *StopExposeRequest) Reset()
func (*StopExposeRequest) String ¶
func (x *StopExposeRequest) String() string
type UnimplementedLocalizerServiceServer ¶
type UnimplementedLocalizerServiceServer struct { }
UnimplementedLocalizerServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedLocalizerServiceServer) ExposeService ¶
func (*UnimplementedLocalizerServiceServer) ExposeService(*ExposeServiceRequest, LocalizerService_ExposeServiceServer) error
func (*UnimplementedLocalizerServiceServer) List ¶
func (*UnimplementedLocalizerServiceServer) List(context.Context, *ListRequest) (*ListResponse, error)
func (*UnimplementedLocalizerServiceServer) Ping ¶
func (*UnimplementedLocalizerServiceServer) Ping(context.Context, *PingRequest) (*PingResponse, error)
func (*UnimplementedLocalizerServiceServer) Stable ¶
func (*UnimplementedLocalizerServiceServer) Stable(context.Context, *Empty) (*StableResponse, error)
func (*UnimplementedLocalizerServiceServer) StopExpose ¶
func (*UnimplementedLocalizerServiceServer) StopExpose(*StopExposeRequest, LocalizerService_StopExposeServer) error