Documentation
¶
Index ¶
- Variables
- func RegisterDiagsServer(s grpc.ServiceRegistrar, srv DiagsServer)
- type DiagResponse
- func (*DiagResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DiagResponse) GetEnvironment() map[string]*DiagResponse_Meta
- func (x *DiagResponse) GetHostname() string
- func (x *DiagResponse) GetHttpHeaders() map[string]*DiagResponse_Meta
- func (x *DiagResponse) GetRpcMeta() map[string]*DiagResponse_Meta
- func (*DiagResponse) ProtoMessage()
- func (x *DiagResponse) ProtoReflect() protoreflect.Message
- func (x *DiagResponse) Reset()
- func (x *DiagResponse) String() string
- type DiagResponse_Meta
- type DiagsClient
- type DiagsServer
- type UnimplementedDiagsServer
- type UnsafeDiagsServer
Constants ¶
This section is empty.
Variables ¶
var File_diag_proto protoreflect.FileDescriptor
Functions ¶
func RegisterDiagsServer ¶
func RegisterDiagsServer(s grpc.ServiceRegistrar, srv DiagsServer)
Types ¶
type DiagResponse ¶
type DiagResponse struct { Hostname string `protobuf:"bytes,1,opt,name=hostname,proto3" json:"hostname,omitempty"` RpcMeta map[string]*DiagResponse_Meta `` /* 170-byte string literal not displayed */ Environment map[string]*DiagResponse_Meta `` /* 163-byte string literal not displayed */ HttpHeaders map[string]*DiagResponse_Meta `` /* 182-byte string literal not displayed */ // contains filtered or unexported fields }
func (*DiagResponse) Descriptor
deprecated
func (*DiagResponse) Descriptor() ([]byte, []int)
Deprecated: Use DiagResponse.ProtoReflect.Descriptor instead.
func (*DiagResponse) GetEnvironment ¶
func (x *DiagResponse) GetEnvironment() map[string]*DiagResponse_Meta
func (*DiagResponse) GetHostname ¶
func (x *DiagResponse) GetHostname() string
func (*DiagResponse) GetHttpHeaders ¶
func (x *DiagResponse) GetHttpHeaders() map[string]*DiagResponse_Meta
func (*DiagResponse) GetRpcMeta ¶
func (x *DiagResponse) GetRpcMeta() map[string]*DiagResponse_Meta
func (*DiagResponse) ProtoMessage ¶
func (*DiagResponse) ProtoMessage()
func (*DiagResponse) ProtoReflect ¶
func (x *DiagResponse) ProtoReflect() protoreflect.Message
func (*DiagResponse) Reset ¶
func (x *DiagResponse) Reset()
func (*DiagResponse) String ¶
func (x *DiagResponse) String() string
type DiagResponse_Meta ¶
type DiagResponse_Meta struct { Value []string `protobuf:"bytes,1,rep,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*DiagResponse_Meta) Descriptor
deprecated
func (*DiagResponse_Meta) Descriptor() ([]byte, []int)
Deprecated: Use DiagResponse_Meta.ProtoReflect.Descriptor instead.
func (*DiagResponse_Meta) GetValue ¶
func (x *DiagResponse_Meta) GetValue() []string
func (*DiagResponse_Meta) ProtoMessage ¶
func (*DiagResponse_Meta) ProtoMessage()
func (*DiagResponse_Meta) ProtoReflect ¶
func (x *DiagResponse_Meta) ProtoReflect() protoreflect.Message
func (*DiagResponse_Meta) Reset ¶
func (x *DiagResponse_Meta) Reset()
func (*DiagResponse_Meta) String ¶
func (x *DiagResponse_Meta) String() string
type DiagsClient ¶
type DiagsClient interface {
Echo(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*DiagResponse, error)
}
DiagsClient is the client API for Diags 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 NewDiagsClient ¶
func NewDiagsClient(cc grpc.ClientConnInterface) DiagsClient
type DiagsServer ¶
type DiagsServer interface { Echo(context.Context, *emptypb.Empty) (*DiagResponse, error) // contains filtered or unexported methods }
DiagsServer is the server API for Diags service. All implementations must embed UnimplementedDiagsServer for forward compatibility
type UnimplementedDiagsServer ¶
type UnimplementedDiagsServer struct { }
UnimplementedDiagsServer must be embedded to have forward compatible implementations.
func (UnimplementedDiagsServer) Echo ¶
func (UnimplementedDiagsServer) Echo(context.Context, *emptypb.Empty) (*DiagResponse, error)
type UnsafeDiagsServer ¶
type UnsafeDiagsServer interface {
// contains filtered or unexported methods
}
UnsafeDiagsServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DiagsServer will result in compilation errors.