Documentation
¶
Index ¶
- Variables
- func RegisterAlarmServer(s *grpc.Server, srv AlarmServer)
- type AlarmClient
- type AlarmServer
- type AlarmType
- type NotifyReq
- func (*NotifyReq) Descriptor() ([]byte, []int)
- func (m *NotifyReq) GetAlarmType() AlarmType
- func (m *NotifyReq) GetContent() string
- func (m *NotifyReq) GetTitle() string
- func (m *NotifyReq) Marshal() (dAtA []byte, err error)
- func (m *NotifyReq) MarshalTo(dAtA []byte) (int, error)
- func (m *NotifyReq) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*NotifyReq) ProtoMessage()
- func (m *NotifyReq) Reset()
- func (m *NotifyReq) Size() (n int)
- func (m *NotifyReq) String() string
- func (m *NotifyReq) Unmarshal(dAtA []byte) error
- func (m *NotifyReq) XXX_DiscardUnknown()
- func (m *NotifyReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *NotifyReq) XXX_Merge(src proto.Message)
- func (m *NotifyReq) XXX_Size() int
- func (m *NotifyReq) XXX_Unmarshal(b []byte) error
- type NotifyRsp
- func (*NotifyRsp) Descriptor() ([]byte, []int)
- func (m *NotifyRsp) Marshal() (dAtA []byte, err error)
- func (m *NotifyRsp) MarshalTo(dAtA []byte) (int, error)
- func (m *NotifyRsp) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*NotifyRsp) ProtoMessage()
- func (m *NotifyRsp) Reset()
- func (m *NotifyRsp) Size() (n int)
- func (m *NotifyRsp) String() string
- func (m *NotifyRsp) Unmarshal(dAtA []byte) error
- func (m *NotifyRsp) XXX_DiscardUnknown()
- func (m *NotifyRsp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *NotifyRsp) XXX_Merge(src proto.Message)
- func (m *NotifyRsp) XXX_Size() int
- func (m *NotifyRsp) XXX_Unmarshal(b []byte) error
- type UnimplementedAlarmServer
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthApi = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowApi = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupApi = fmt.Errorf("proto: unexpected end of group") )
View Source
var AlarmType_name = map[int32]string{
1: "CouponDingTalk",
2: "CouponQyWeChat",
}
View Source
var AlarmType_value = map[string]int32{
"CouponDingTalk": 1,
"CouponQyWeChat": 2,
}
Functions ¶
func RegisterAlarmServer ¶
func RegisterAlarmServer(s *grpc.Server, srv AlarmServer)
Types ¶
type AlarmClient ¶
type AlarmClient interface { // 通知 DingTalk(ctx context.Context, in *NotifyReq, opts ...grpc.CallOption) (*NotifyRsp, error) }
AlarmClient is the client API for Alarm service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAlarmClient ¶
func NewAlarmClient(cc *grpc.ClientConn) AlarmClient
type AlarmServer ¶
AlarmServer is the server API for Alarm service.
type AlarmType ¶
type AlarmType int32
通知类型 业务+通知平台
func (AlarmType) EnumDescriptor ¶
func (*AlarmType) UnmarshalJSON ¶
type NotifyReq ¶
type NotifyReq struct { // 类型 AlarmType *AlarmType `protobuf:"varint,1,req,name=alarm_type,json=alarmType,enum=api.AlarmType" json:"alarm_type,omitempty"` // 标题 Title *string `protobuf:"bytes,2,opt,name=title" json:"title,omitempty"` // 内容 Content *string `protobuf:"bytes,3,req,name=content" json:"content,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*NotifyReq) Descriptor ¶
func (*NotifyReq) GetAlarmType ¶
func (*NotifyReq) GetContent ¶
func (*NotifyReq) MarshalToSizedBuffer ¶
func (*NotifyReq) ProtoMessage ¶
func (*NotifyReq) ProtoMessage()
func (*NotifyReq) XXX_DiscardUnknown ¶
func (m *NotifyReq) XXX_DiscardUnknown()
func (*NotifyReq) XXX_Marshal ¶
func (*NotifyReq) XXX_Unmarshal ¶
type NotifyRsp ¶
type NotifyRsp struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*NotifyRsp) Descriptor ¶
func (*NotifyRsp) MarshalToSizedBuffer ¶
func (*NotifyRsp) ProtoMessage ¶
func (*NotifyRsp) ProtoMessage()
func (*NotifyRsp) XXX_DiscardUnknown ¶
func (m *NotifyRsp) XXX_DiscardUnknown()
func (*NotifyRsp) XXX_Marshal ¶
func (*NotifyRsp) XXX_Unmarshal ¶
type UnimplementedAlarmServer ¶
type UnimplementedAlarmServer struct { }
UnimplementedAlarmServer can be embedded to have forward compatible implementations.
Click to show internal directories.
Click to hide internal directories.