index

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2022 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_api_grpc_index_index_proto protoreflect.FileDescriptor
View Source
var Index_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "index.Index",
	HandlerType: (*IndexServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Index",
			Handler:    _Index_Index_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/grpc/index/index.proto",
}

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

Functions

func RegisterIndexServer

func RegisterIndexServer(s grpc.ServiceRegistrar, srv IndexServer)

Types

type Index

type Index struct {
	*UnimplementedIndexServer
}

func New

func New() *Index

func (*Index) Index

func (a *Index) Index(ctx context.Context, none *None) (*IndexIndexResp, error)

type IndexClient

type IndexClient interface {
	Index(ctx context.Context, in *None, opts ...grpc.CallOption) (*IndexIndexResp, error)
}

IndexClient is the client API for Index 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 NewIndexClient

func NewIndexClient(cc grpc.ClientConnInterface) IndexClient

type IndexIndexResp

type IndexIndexResp struct {
	Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*IndexIndexResp) Descriptor deprecated

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

Deprecated: Use IndexIndexResp.ProtoReflect.Descriptor instead.

func (*IndexIndexResp) GetMessage

func (x *IndexIndexResp) GetMessage() string

func (*IndexIndexResp) ProtoMessage

func (*IndexIndexResp) ProtoMessage()

func (*IndexIndexResp) ProtoReflect

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

func (*IndexIndexResp) Reset

func (x *IndexIndexResp) Reset()

func (*IndexIndexResp) String

func (x *IndexIndexResp) String() string

type IndexServer

type IndexServer interface {
	Index(context.Context, *None) (*IndexIndexResp, error)
	// contains filtered or unexported methods
}

IndexServer is the server API for Index service. All implementations must embed UnimplementedIndexServer for forward compatibility

type None

type None struct {
	// contains filtered or unexported fields
}

func (*None) Descriptor deprecated

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

Deprecated: Use None.ProtoReflect.Descriptor instead.

func (*None) ProtoMessage

func (*None) ProtoMessage()

func (*None) ProtoReflect

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

func (*None) Reset

func (x *None) Reset()

func (*None) String

func (x *None) String() string

type UnimplementedIndexServer

type UnimplementedIndexServer struct {
}

UnimplementedIndexServer must be embedded to have forward compatible implementations.

func (UnimplementedIndexServer) Index

type UnsafeIndexServer

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

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

Jump to

Keyboard shortcuts

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