request

package
v0.0.0-...-5349944 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_event_request_proto protoreflect.FileDescriptor

Functions

func RegisterOnebotEventRequestGRPCServiceServer

func RegisterOnebotEventRequestGRPCServiceServer(s *grpc.Server, srv OnebotEventRequestGRPCServiceServer)

Types

type OnebotEventRequestGRPCServiceClient

type OnebotEventRequestGRPCServiceClient interface {
	// ListenRequestFriend(handler func(data model.EventRequestFriend) error)
	HandleRequestFriend(ctx context.Context, in *model.EventRequestFriendGRPC, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// ListenRequestGroup(handler func(data model.EventRequestGroup) error)
	HandleRequestGroup(ctx context.Context, in *model.EventRequestGroupGRPC, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

OnebotEventRequestGRPCServiceClient is the client API for OnebotEventRequestGRPCService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type OnebotEventRequestGRPCServiceServer

type OnebotEventRequestGRPCServiceServer interface {
	// ListenRequestFriend(handler func(data model.EventRequestFriend) error)
	HandleRequestFriend(context.Context, *model.EventRequestFriendGRPC) (*emptypb.Empty, error)
	// ListenRequestGroup(handler func(data model.EventRequestGroup) error)
	HandleRequestGroup(context.Context, *model.EventRequestGroupGRPC) (*emptypb.Empty, error)
}

OnebotEventRequestGRPCServiceServer is the server API for OnebotEventRequestGRPCService service.

type OnebotRequestEventCli

type OnebotRequestEventCli interface {
	base.OnebotBaseEventCli
	ListenRequestFriend(handler func(data model.EventRequestFriend) error)
	ListenRequestGroup(handler func(data model.EventRequestGroup) error)
}

func NewOnebotRequestEventCli

func NewOnebotRequestEventCli() (OnebotRequestEventCli, error)

type UnimplementedOnebotEventRequestGRPCServiceServer

type UnimplementedOnebotEventRequestGRPCServiceServer struct {
}

UnimplementedOnebotEventRequestGRPCServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedOnebotEventRequestGRPCServiceServer) HandleRequestFriend

func (*UnimplementedOnebotEventRequestGRPCServiceServer) HandleRequestGroup

Jump to

Keyboard shortcuts

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