pb

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2021 License: Apache-2.0 Imports: 24 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_dingtalk_test_proto protoreflect.FileDescriptor

Functions

func DingTalkTestServiceClientType

func DingTalkTestServiceClientType() reflect.Type

DingTalkTestServiceClientType .

func DingTalkTestServiceHandlerType

func DingTalkTestServiceHandlerType() reflect.Type

DingTalkTestServiceHandlerType .

func DingTalkTestServiceServerType

func DingTalkTestServiceServerType() reflect.Type

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)

func ServiceNames

func ServiceNames(svr ...string) []string

ServiceNames return all service names

func Types

func Types() []reflect.Type

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.

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

Jump to

Keyboard shortcuts

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