Documentation ¶
Index ¶
- Variables
- func DingTalkTestServiceClientType() reflect.Type
- func DingTalkTestServiceHandlerType() reflect.Type
- func DingTalkTestServiceServerType() reflect.Type
- func RegisterDingTalkTestServiceHandler(r http.Router, srv DingTalkTestServiceHandler, opts ...http.HandleOption)
- func RegisterDingTalkTestServiceImp(regester transport.Register, srv DingTalkTestServiceServer, ...)
- func RegisterDingTalkTestServiceServer(s grpc1.ServiceRegistrar, srv DingTalkTestServiceServer, ...)
- func ServiceNames(svr ...string) []string
- func Types() []reflect.Type
- type DingTalkTestRequest
- func (*DingTalkTestRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DingTalkTestRequest) GetSecret() string
- func (x *DingTalkTestRequest) GetWebhook() string
- func (m *DingTalkTestRequest) MarshalJSON() ([]byte, error)
- func (*DingTalkTestRequest) ProtoMessage()
- func (x *DingTalkTestRequest) ProtoReflect() protoreflect.Message
- func (x *DingTalkTestRequest) Reset()
- func (x *DingTalkTestRequest) String() string
- func (m *DingTalkTestRequest) UnmarshalJSON(b []byte) error
- func (m *DingTalkTestRequest) UnmarshalURLValues(prefix string, values url.Values) error
- func (this *DingTalkTestRequest) Validate() error
- type DingTalkTestResponse
- func (*DingTalkTestResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DingTalkTestResponse) GetError() string
- func (x *DingTalkTestResponse) GetSuccess() bool
- func (m *DingTalkTestResponse) MarshalJSON() ([]byte, error)
- func (*DingTalkTestResponse) ProtoMessage()
- func (x *DingTalkTestResponse) ProtoReflect() protoreflect.Message
- func (x *DingTalkTestResponse) Reset()
- func (x *DingTalkTestResponse) String() string
- func (m *DingTalkTestResponse) UnmarshalJSON(b []byte) error
- func (m *DingTalkTestResponse) UnmarshalURLValues(prefix string, values url.Values) error
- func (this *DingTalkTestResponse) Validate() error
- type DingTalkTestServiceClient
- type DingTalkTestServiceHandler
- type DingTalkTestServiceServer
- type UnimplementedDingTalkTestServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_dingtalk_test_proto protoreflect.FileDescriptor
Functions ¶
func DingTalkTestServiceClientType ¶
DingTalkTestServiceClientType .
func DingTalkTestServiceHandlerType ¶
DingTalkTestServiceHandlerType .
func DingTalkTestServiceServerType ¶
DingTalkTestServiceServerType .
func RegisterDingTalkTestServiceHandler ¶
func RegisterDingTalkTestServiceHandler(r http.Router, srv DingTalkTestServiceHandler, opts ...http.HandleOption)
RegisterDingTalkTestServiceHandler register DingTalkTestServiceHandler to http.Router.
func RegisterDingTalkTestServiceImp ¶
func RegisterDingTalkTestServiceImp(regester transport.Register, srv DingTalkTestServiceServer, opts ...transport.ServiceOption)
RegisterDingTalkTestServiceImp dingtalk_test.proto
func RegisterDingTalkTestServiceServer ¶
func RegisterDingTalkTestServiceServer(s grpc1.ServiceRegistrar, srv DingTalkTestServiceServer, opts ...grpc1.HandleOption)
Types ¶
type DingTalkTestRequest ¶
type DingTalkTestRequest struct { Webhook string `protobuf:"bytes,1,opt,name=webhook,proto3" json:"webhook,omitempty"` Secret string `protobuf:"bytes,2,opt,name=secret,proto3" json:"secret,omitempty"` // contains filtered or unexported fields }
func (*DingTalkTestRequest) Descriptor
deprecated
func (*DingTalkTestRequest) Descriptor() ([]byte, []int)
Deprecated: Use DingTalkTestRequest.ProtoReflect.Descriptor instead.
func (*DingTalkTestRequest) GetSecret ¶
func (x *DingTalkTestRequest) GetSecret() string
func (*DingTalkTestRequest) GetWebhook ¶
func (x *DingTalkTestRequest) GetWebhook() string
func (*DingTalkTestRequest) MarshalJSON ¶
func (m *DingTalkTestRequest) MarshalJSON() ([]byte, error)
DingTalkTestRequest implement json.Marshaler.
func (*DingTalkTestRequest) ProtoMessage ¶
func (*DingTalkTestRequest) ProtoMessage()
func (*DingTalkTestRequest) ProtoReflect ¶
func (x *DingTalkTestRequest) ProtoReflect() protoreflect.Message
func (*DingTalkTestRequest) Reset ¶
func (x *DingTalkTestRequest) Reset()
func (*DingTalkTestRequest) String ¶
func (x *DingTalkTestRequest) String() string
func (*DingTalkTestRequest) UnmarshalJSON ¶
func (m *DingTalkTestRequest) UnmarshalJSON(b []byte) error
DingTalkTestRequest implement json.Marshaler.
func (*DingTalkTestRequest) UnmarshalURLValues ¶
func (m *DingTalkTestRequest) UnmarshalURLValues(prefix string, values url.Values) error
DingTalkTestRequest implement urlenc.URLValuesUnmarshaler.
func (*DingTalkTestRequest) Validate ¶
func (this *DingTalkTestRequest) Validate() error
type DingTalkTestResponse ¶
type DingTalkTestResponse struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` // contains filtered or unexported fields }
func (*DingTalkTestResponse) Descriptor
deprecated
func (*DingTalkTestResponse) Descriptor() ([]byte, []int)
Deprecated: Use DingTalkTestResponse.ProtoReflect.Descriptor instead.
func (*DingTalkTestResponse) GetError ¶
func (x *DingTalkTestResponse) GetError() string
func (*DingTalkTestResponse) GetSuccess ¶
func (x *DingTalkTestResponse) GetSuccess() bool
func (*DingTalkTestResponse) MarshalJSON ¶
func (m *DingTalkTestResponse) MarshalJSON() ([]byte, error)
DingTalkTestResponse implement json.Marshaler.
func (*DingTalkTestResponse) ProtoMessage ¶
func (*DingTalkTestResponse) ProtoMessage()
func (*DingTalkTestResponse) ProtoReflect ¶
func (x *DingTalkTestResponse) ProtoReflect() protoreflect.Message
func (*DingTalkTestResponse) Reset ¶
func (x *DingTalkTestResponse) Reset()
func (*DingTalkTestResponse) String ¶
func (x *DingTalkTestResponse) String() string
func (*DingTalkTestResponse) UnmarshalJSON ¶
func (m *DingTalkTestResponse) UnmarshalJSON(b []byte) error
DingTalkTestResponse implement json.Marshaler.
func (*DingTalkTestResponse) UnmarshalURLValues ¶
func (m *DingTalkTestResponse) UnmarshalURLValues(prefix string, values url.Values) error
DingTalkTestResponse implement urlenc.URLValuesUnmarshaler.
func (*DingTalkTestResponse) Validate ¶
func (this *DingTalkTestResponse) Validate() error
type DingTalkTestServiceClient ¶
type DingTalkTestServiceClient interface {
SendTestMessage(ctx context.Context, in *DingTalkTestRequest, opts ...grpc.CallOption) (*DingTalkTestResponse, error)
}
DingTalkTestServiceClient is the client API for DingTalkTestService 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 NewDingTalkTestServiceClient ¶
func NewDingTalkTestServiceClient(cc grpc1.ClientConnInterface) DingTalkTestServiceClient
type DingTalkTestServiceHandler ¶
type DingTalkTestServiceHandler interface { // POST /api/admin/notify/dingtalk-test SendTestMessage(context.Context, *DingTalkTestRequest) (*DingTalkTestResponse, error) }
DingTalkTestServiceHandler is the server API for DingTalkTestService service.
type DingTalkTestServiceServer ¶
type DingTalkTestServiceServer interface {
SendTestMessage(context.Context, *DingTalkTestRequest) (*DingTalkTestResponse, error)
}
DingTalkTestServiceServer is the server API for DingTalkTestService service. All implementations should embed UnimplementedDingTalkTestServiceServer for forward compatibility
type UnimplementedDingTalkTestServiceServer ¶
type UnimplementedDingTalkTestServiceServer struct { }
UnimplementedDingTalkTestServiceServer should be embedded to have forward compatible implementations.
func (*UnimplementedDingTalkTestServiceServer) SendTestMessage ¶
func (*UnimplementedDingTalkTestServiceServer) SendTestMessage(context.Context, *DingTalkTestRequest) (*DingTalkTestResponse, error)