v1

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
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)

View Source
var File_api_entry_v1_entry_proto protoreflect.FileDescriptor
View Source
var File_api_entry_v1_error_proto protoreflect.FileDescriptor

Functions

func EntryErrInternalError

func EntryErrInternalError() errors.Error

func EntryErrInvalidTenant

func EntryErrInvalidTenant() errors.Error

func EntryErrUnknown

func EntryErrUnknown() errors.Error

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 EntryHTTPServer interface {
	GetEntries(context.Context, *emptypb.Empty) (*GetEntriesResponse, error)
}

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 错误

const (
	// @msg=未知类型
	// @code=UNKNOWN
	Error_ENTRY_ERR_UNKNOWN Error = 0
	// @msg=无效的租户ID
	// @code=INVALID_ARGUMENT
	Error_ENTRY_ERR_INVALID_TENANT Error = 1
	// @msg=请求后端内部错误
	// @code=INTERNAL
	Error_ENTRY_ERR_INTERNAL_ERROR Error = 2
)

func (Error) Descriptor

func (Error) Descriptor() protoreflect.EnumDescriptor

func (Error) Enum

func (x Error) Enum() *Error

func (Error) EnumDescriptor deprecated

func (Error) EnumDescriptor() ([]byte, []int)

Deprecated: Use Error.Descriptor instead.

func (Error) Number

func (x Error) Number() protoreflect.EnumNumber

func (Error) String

func (x Error) String() string

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

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.

Jump to

Keyboard shortcuts

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