Documentation ¶
Index ¶
- Variables
- func EntryErrInternalError() errors.Error
- func EntryErrInvalidTenant() errors.Error
- func EntryErrUnknown() errors.Error
- func RegisterEntryHTTPServer(container *go_restful.Container, srv EntryHTTPServer)
- func RegisterEntryServer(s grpc.ServiceRegistrar, srv EntryServer)
- type EntryClient
- type EntryHTTPHandler
- type EntryHTTPServer
- type EntryServer
- type Error
- type GetEntriesResponse
- func (*GetEntriesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetEntriesResponse) GetEntries() []*v1.ConsoleEntry
- func (*GetEntriesResponse) ProtoMessage()
- func (x *GetEntriesResponse) ProtoReflect() protoreflect.Message
- func (x *GetEntriesResponse) Reset()
- func (x *GetEntriesResponse) String() string
- type UnimplementedEntryServer
- type UnsafeEntryServer
Constants ¶
This section is empty.
Variables ¶
var ( Error_name = map[int32]string{ 0: "ENTRY_ERR_UNKNOWN", 1: "ENTRY_ERR_INVALID_TENANT", 2: "ENTRY_ERR_INTERNAL_ERROR", } Error_value = map[string]int32{ "ENTRY_ERR_UNKNOWN": 0, "ENTRY_ERR_INVALID_TENANT": 1, "ENTRY_ERR_INTERNAL_ERROR": 2, } )
Enum value maps for Error.
var Entry_ServiceDesc = grpc.ServiceDesc{ ServiceName: "io.tkeel.rudder.api.entry.v1.entry", HandlerType: (*EntryServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetEntries", Handler: _Entry_GetEntries_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/entry/v1/entry.proto", }
Entry_ServiceDesc is the grpc.ServiceDesc for Entry service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_api_entry_v1_entry_proto protoreflect.FileDescriptor
var File_api_entry_v1_error_proto protoreflect.FileDescriptor
Functions ¶
func EntryErrInternalError ¶
func EntryErrInvalidTenant ¶
func EntryErrUnknown ¶
func RegisterEntryHTTPServer ¶
func RegisterEntryHTTPServer(container *go_restful.Container, srv EntryHTTPServer)
func RegisterEntryServer ¶
func RegisterEntryServer(s grpc.ServiceRegistrar, srv EntryServer)
Types ¶
type EntryClient ¶
type EntryClient interface {
GetEntries(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetEntriesResponse, error)
}
EntryClient is the client API for Entry 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 NewEntryClient ¶
func NewEntryClient(cc grpc.ClientConnInterface) EntryClient
type EntryHTTPHandler ¶
type EntryHTTPHandler struct {
// contains filtered or unexported fields
}
func (*EntryHTTPHandler) GetEntries ¶
func (h *EntryHTTPHandler) GetEntries(req *go_restful.Request, resp *go_restful.Response)
type EntryHTTPServer ¶
type EntryServer ¶
type EntryServer interface { GetEntries(context.Context, *emptypb.Empty) (*GetEntriesResponse, error) // contains filtered or unexported methods }
EntryServer is the server API for Entry service. All implementations must embed UnimplementedEntryServer for forward compatibility
type Error ¶
type Error int32
@plugins=protoc-gen-go-errors 错误
func (Error) Descriptor ¶
func (Error) Descriptor() protoreflect.EnumDescriptor
func (Error) EnumDescriptor
deprecated
func (Error) Number ¶
func (x Error) Number() protoreflect.EnumNumber
func (Error) Type ¶
func (Error) Type() protoreflect.EnumType
type GetEntriesResponse ¶
type GetEntriesResponse struct { Entries []*v1.ConsoleEntry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"` // contains filtered or unexported fields }
func (*GetEntriesResponse) Descriptor
deprecated
func (*GetEntriesResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetEntriesResponse.ProtoReflect.Descriptor instead.
func (*GetEntriesResponse) GetEntries ¶
func (x *GetEntriesResponse) GetEntries() []*v1.ConsoleEntry
func (*GetEntriesResponse) ProtoMessage ¶
func (*GetEntriesResponse) ProtoMessage()
func (*GetEntriesResponse) ProtoReflect ¶
func (x *GetEntriesResponse) ProtoReflect() protoreflect.Message
func (*GetEntriesResponse) Reset ¶
func (x *GetEntriesResponse) Reset()
func (*GetEntriesResponse) String ¶
func (x *GetEntriesResponse) String() string
type UnimplementedEntryServer ¶
type UnimplementedEntryServer struct { }
UnimplementedEntryServer must be embedded to have forward compatible implementations.
func (UnimplementedEntryServer) GetEntries ¶
func (UnimplementedEntryServer) GetEntries(context.Context, *emptypb.Empty) (*GetEntriesResponse, error)
type UnsafeEntryServer ¶
type UnsafeEntryServer interface {
// contains filtered or unexported methods
}
UnsafeEntryServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to EntryServer will result in compilation errors.