dingtalkv1

package
v0.0.0-...-a9153d3 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Package dingtalkv1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	DingTalkService_CreateClassChatGroup_FullMethodName = "/consultingapis.dingtalk.v1.DingTalkService/CreateClassChatGroup"
	DingTalkService_GetClassChatGroup_FullMethodName    = "/consultingapis.dingtalk.v1.DingTalkService/GetClassChatGroup"
	DingTalkService_MergeClassChatGroup_FullMethodName  = "/consultingapis.dingtalk.v1.DingTalkService/MergeClassChatGroup"
	DingTalkService_SyncClassChatGroup_FullMethodName   = "/consultingapis.dingtalk.v1.DingTalkService/SyncClassChatGroup"
)

Variables

View Source
var DingTalkService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "consultingapis.dingtalk.v1.DingTalkService",
	HandlerType: (*DingTalkServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateClassChatGroup",
			Handler:    _DingTalkService_CreateClassChatGroup_Handler,
		},
		{
			MethodName: "GetClassChatGroup",
			Handler:    _DingTalkService_GetClassChatGroup_Handler,
		},
		{
			MethodName: "MergeClassChatGroup",
			Handler:    _DingTalkService_MergeClassChatGroup_Handler,
		},
		{
			MethodName: "SyncClassChatGroup",
			Handler:    _DingTalkService_SyncClassChatGroup_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "consultingapis/dingtalk/v1/dingtalk.proto",
}

DingTalkService_ServiceDesc is the grpc.ServiceDesc for DingTalkService 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_consultingapis_dingtalk_v1_dingtalk_proto protoreflect.FileDescriptor

Functions

func RegisterDingTalkServiceHandler

func RegisterDingTalkServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterDingTalkServiceHandler registers the http handlers for service DingTalkService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterDingTalkServiceHandlerClient

func RegisterDingTalkServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client DingTalkServiceClient) error

RegisterDingTalkServiceHandlerClient registers the http handlers for service DingTalkService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "DingTalkServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "DingTalkServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "DingTalkServiceClient" to call the correct interceptors.

func RegisterDingTalkServiceHandlerFromEndpoint

func RegisterDingTalkServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterDingTalkServiceHandlerFromEndpoint is same as RegisterDingTalkServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterDingTalkServiceHandlerServer

func RegisterDingTalkServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server DingTalkServiceServer) error

RegisterDingTalkServiceHandlerServer registers the http handlers for service DingTalkService to "mux". UnaryRPC :call DingTalkServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterDingTalkServiceHandlerFromEndpoint instead.

func RegisterDingTalkServiceServer

func RegisterDingTalkServiceServer(s grpc.ServiceRegistrar, srv DingTalkServiceServer)

Types

type CreateClassChatGroupRequest

type CreateClassChatGroupRequest struct {
	ClassId string                            `protobuf:"bytes,1,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"`
	Body    *CreateClassChatGroupRequest_Body `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateClassChatGroupRequest) Descriptor deprecated

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

Deprecated: Use CreateClassChatGroupRequest.ProtoReflect.Descriptor instead.

func (*CreateClassChatGroupRequest) GetBody

func (*CreateClassChatGroupRequest) GetClassId

func (x *CreateClassChatGroupRequest) GetClassId() string

func (*CreateClassChatGroupRequest) ProtoMessage

func (*CreateClassChatGroupRequest) ProtoMessage()

func (*CreateClassChatGroupRequest) ProtoReflect

func (*CreateClassChatGroupRequest) Reset

func (x *CreateClassChatGroupRequest) Reset()

func (*CreateClassChatGroupRequest) String

func (x *CreateClassChatGroupRequest) String() string

type CreateClassChatGroupRequest_Body

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

func (*CreateClassChatGroupRequest_Body) Descriptor deprecated

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

Deprecated: Use CreateClassChatGroupRequest_Body.ProtoReflect.Descriptor instead.

func (*CreateClassChatGroupRequest_Body) GetName

func (*CreateClassChatGroupRequest_Body) ProtoMessage

func (*CreateClassChatGroupRequest_Body) ProtoMessage()

func (*CreateClassChatGroupRequest_Body) ProtoReflect

func (*CreateClassChatGroupRequest_Body) Reset

func (*CreateClassChatGroupRequest_Body) String

type CreateClassChatGroupResponse

type CreateClassChatGroupResponse struct {
	ChatId             string `protobuf:"bytes,1,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"`
	OpenConversationId string `protobuf:"bytes,2,opt,name=openConversationId,proto3" json:"openConversationId,omitempty"`
	InviteUrl          string `protobuf:"bytes,3,opt,name=invite_url,json=inviteUrl,proto3" json:"invite_url,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateClassChatGroupResponse) Descriptor deprecated

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

Deprecated: Use CreateClassChatGroupResponse.ProtoReflect.Descriptor instead.

func (*CreateClassChatGroupResponse) GetChatId

func (x *CreateClassChatGroupResponse) GetChatId() string

func (*CreateClassChatGroupResponse) GetInviteUrl

func (x *CreateClassChatGroupResponse) GetInviteUrl() string

func (*CreateClassChatGroupResponse) GetOpenConversationId

func (x *CreateClassChatGroupResponse) GetOpenConversationId() string

func (*CreateClassChatGroupResponse) ProtoMessage

func (*CreateClassChatGroupResponse) ProtoMessage()

func (*CreateClassChatGroupResponse) ProtoReflect

func (*CreateClassChatGroupResponse) Reset

func (x *CreateClassChatGroupResponse) Reset()

func (*CreateClassChatGroupResponse) String

type DingTalkServiceClient

type DingTalkServiceClient interface {
	CreateClassChatGroup(ctx context.Context, in *CreateClassChatGroupRequest, opts ...grpc.CallOption) (*CreateClassChatGroupResponse, error)
	GetClassChatGroup(ctx context.Context, in *GetClassChatGroupRequest, opts ...grpc.CallOption) (*GetClassChatGroupResponse, error)
	MergeClassChatGroup(ctx context.Context, in *MergeClassChatGroupRequest, opts ...grpc.CallOption) (*MergeClassChatGroupResponse, error)
	SyncClassChatGroup(ctx context.Context, in *SyncClassChatGroupRequest, opts ...grpc.CallOption) (*SyncClassChatGroupResponse, error)
}

DingTalkServiceClient is the client API for DingTalkService 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.

type DingTalkServiceServer

type DingTalkServiceServer interface {
	CreateClassChatGroup(context.Context, *CreateClassChatGroupRequest) (*CreateClassChatGroupResponse, error)
	GetClassChatGroup(context.Context, *GetClassChatGroupRequest) (*GetClassChatGroupResponse, error)
	MergeClassChatGroup(context.Context, *MergeClassChatGroupRequest) (*MergeClassChatGroupResponse, error)
	SyncClassChatGroup(context.Context, *SyncClassChatGroupRequest) (*SyncClassChatGroupResponse, error)
	// contains filtered or unexported methods
}

DingTalkServiceServer is the server API for DingTalkService service. All implementations must embed UnimplementedDingTalkServiceServer for forward compatibility

type GetClassChatGroupRequest

type GetClassChatGroupRequest struct {
	ClassId string `protobuf:"bytes,1,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetClassChatGroupRequest) Descriptor deprecated

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

Deprecated: Use GetClassChatGroupRequest.ProtoReflect.Descriptor instead.

func (*GetClassChatGroupRequest) GetClassId

func (x *GetClassChatGroupRequest) GetClassId() string

func (*GetClassChatGroupRequest) ProtoMessage

func (*GetClassChatGroupRequest) ProtoMessage()

func (*GetClassChatGroupRequest) ProtoReflect

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

func (*GetClassChatGroupRequest) Reset

func (x *GetClassChatGroupRequest) Reset()

func (*GetClassChatGroupRequest) String

func (x *GetClassChatGroupRequest) String() string

type GetClassChatGroupResponse

type GetClassChatGroupResponse struct {
	Chats []*GetClassChatGroupResponse_Chat `protobuf:"bytes,1,rep,name=chats,proto3" json:"chats,omitempty"`
	// contains filtered or unexported fields
}

func (*GetClassChatGroupResponse) Descriptor deprecated

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

Deprecated: Use GetClassChatGroupResponse.ProtoReflect.Descriptor instead.

func (*GetClassChatGroupResponse) GetChats

func (*GetClassChatGroupResponse) ProtoMessage

func (*GetClassChatGroupResponse) ProtoMessage()

func (*GetClassChatGroupResponse) ProtoReflect

func (*GetClassChatGroupResponse) Reset

func (x *GetClassChatGroupResponse) Reset()

func (*GetClassChatGroupResponse) String

func (x *GetClassChatGroupResponse) String() string

type GetClassChatGroupResponse_Chat

type GetClassChatGroupResponse_Chat struct {
	ChatId             string `protobuf:"bytes,1,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"`
	OpenConversationId string `protobuf:"bytes,2,opt,name=openConversationId,proto3" json:"openConversationId,omitempty"`
	InviteUrl          string `protobuf:"bytes,3,opt,name=invite_url,json=inviteUrl,proto3" json:"invite_url,omitempty"`
	CreatedAt          int64  `protobuf:"varint,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// contains filtered or unexported fields
}

func (*GetClassChatGroupResponse_Chat) Descriptor deprecated

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

Deprecated: Use GetClassChatGroupResponse_Chat.ProtoReflect.Descriptor instead.

func (*GetClassChatGroupResponse_Chat) GetChatId

func (x *GetClassChatGroupResponse_Chat) GetChatId() string

func (*GetClassChatGroupResponse_Chat) GetCreatedAt

func (x *GetClassChatGroupResponse_Chat) GetCreatedAt() int64

func (*GetClassChatGroupResponse_Chat) GetInviteUrl

func (x *GetClassChatGroupResponse_Chat) GetInviteUrl() string

func (*GetClassChatGroupResponse_Chat) GetOpenConversationId

func (x *GetClassChatGroupResponse_Chat) GetOpenConversationId() string

func (*GetClassChatGroupResponse_Chat) ProtoMessage

func (*GetClassChatGroupResponse_Chat) ProtoMessage()

func (*GetClassChatGroupResponse_Chat) ProtoReflect

func (*GetClassChatGroupResponse_Chat) Reset

func (x *GetClassChatGroupResponse_Chat) Reset()

func (*GetClassChatGroupResponse_Chat) String

type MergeClassChatGroupRequest

type MergeClassChatGroupRequest struct {
	ClassId            string `protobuf:"bytes,1,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"`
	OpenConversationId string `protobuf:"bytes,2,opt,name=openConversationId,proto3" json:"openConversationId,omitempty"`
	// contains filtered or unexported fields
}

func (*MergeClassChatGroupRequest) Descriptor deprecated

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

Deprecated: Use MergeClassChatGroupRequest.ProtoReflect.Descriptor instead.

func (*MergeClassChatGroupRequest) GetClassId

func (x *MergeClassChatGroupRequest) GetClassId() string

func (*MergeClassChatGroupRequest) GetOpenConversationId

func (x *MergeClassChatGroupRequest) GetOpenConversationId() string

func (*MergeClassChatGroupRequest) ProtoMessage

func (*MergeClassChatGroupRequest) ProtoMessage()

func (*MergeClassChatGroupRequest) ProtoReflect

func (*MergeClassChatGroupRequest) Reset

func (x *MergeClassChatGroupRequest) Reset()

func (*MergeClassChatGroupRequest) String

func (x *MergeClassChatGroupRequest) String() string

type MergeClassChatGroupResponse

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

func (*MergeClassChatGroupResponse) Descriptor deprecated

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

Deprecated: Use MergeClassChatGroupResponse.ProtoReflect.Descriptor instead.

func (*MergeClassChatGroupResponse) ProtoMessage

func (*MergeClassChatGroupResponse) ProtoMessage()

func (*MergeClassChatGroupResponse) ProtoReflect

func (*MergeClassChatGroupResponse) Reset

func (x *MergeClassChatGroupResponse) Reset()

func (*MergeClassChatGroupResponse) String

func (x *MergeClassChatGroupResponse) String() string

type SyncClassChatGroupRequest

type SyncClassChatGroupRequest struct {
	ClassId string `protobuf:"bytes,1,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"`
	// contains filtered or unexported fields
}

func (*SyncClassChatGroupRequest) Descriptor deprecated

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

Deprecated: Use SyncClassChatGroupRequest.ProtoReflect.Descriptor instead.

func (*SyncClassChatGroupRequest) GetClassId

func (x *SyncClassChatGroupRequest) GetClassId() string

func (*SyncClassChatGroupRequest) ProtoMessage

func (*SyncClassChatGroupRequest) ProtoMessage()

func (*SyncClassChatGroupRequest) ProtoReflect

func (*SyncClassChatGroupRequest) Reset

func (x *SyncClassChatGroupRequest) Reset()

func (*SyncClassChatGroupRequest) String

func (x *SyncClassChatGroupRequest) String() string

type SyncClassChatGroupResponse

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

func (*SyncClassChatGroupResponse) Descriptor deprecated

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

Deprecated: Use SyncClassChatGroupResponse.ProtoReflect.Descriptor instead.

func (*SyncClassChatGroupResponse) GetMessage

func (x *SyncClassChatGroupResponse) GetMessage() string

func (*SyncClassChatGroupResponse) ProtoMessage

func (*SyncClassChatGroupResponse) ProtoMessage()

func (*SyncClassChatGroupResponse) ProtoReflect

func (*SyncClassChatGroupResponse) Reset

func (x *SyncClassChatGroupResponse) Reset()

func (*SyncClassChatGroupResponse) String

func (x *SyncClassChatGroupResponse) String() string

type UnimplementedDingTalkServiceServer

type UnimplementedDingTalkServiceServer struct {
}

UnimplementedDingTalkServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedDingTalkServiceServer) GetClassChatGroup

func (UnimplementedDingTalkServiceServer) MergeClassChatGroup

func (UnimplementedDingTalkServiceServer) SyncClassChatGroup

type UnsafeDingTalkServiceServer

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

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

Jump to

Keyboard shortcuts

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