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: 29 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_notifygroup_proto protoreflect.FileDescriptor

Functions

func NotifyGroupServiceClientType

func NotifyGroupServiceClientType() reflect.Type

NotifyGroupServiceClientType .

func NotifyGroupServiceHandlerType

func NotifyGroupServiceHandlerType() reflect.Type

NotifyGroupServiceHandlerType .

func NotifyGroupServiceServerType

func NotifyGroupServiceServerType() reflect.Type

NotifyGroupServiceServerType .

func RegisterNotifyGroupServiceHandler

func RegisterNotifyGroupServiceHandler(r http.Router, srv NotifyGroupServiceHandler, opts ...http.HandleOption)

RegisterNotifyGroupServiceHandler register NotifyGroupServiceHandler to http.Router.

func RegisterNotifyGroupServiceImp

func RegisterNotifyGroupServiceImp(regester transport.Register, srv NotifyGroupServiceServer, opts ...transport.ServiceOption)

RegisterNotifyGroupServiceImp notifygroup.proto

func RegisterNotifyGroupServiceServer

func RegisterNotifyGroupServiceServer(s grpc1.ServiceRegistrar, srv NotifyGroupServiceServer, opts ...grpc1.HandleOption)

func ServiceNames

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

ServiceNames return all service names

func Types

func Types() []reflect.Type

Types

type CreateNotifyGroupRequest

type CreateNotifyGroupRequest struct {
	Name        string          `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	ScopeType   string          `protobuf:"bytes,2,opt,name=scopeType,proto3" json:"scopeType,omitempty"`
	ScopeId     string          `protobuf:"bytes,3,opt,name=scopeId,proto3" json:"scopeId,omitempty"`
	Targets     []*NotifyTarget `protobuf:"bytes,4,rep,name=targets,proto3" json:"targets,omitempty"`
	Creator     string          `protobuf:"bytes,5,opt,name=creator,proto3" json:"creator,omitempty"`
	Label       string          `protobuf:"bytes,6,opt,name=label,proto3" json:"label,omitempty"`
	ClusterName string          `protobuf:"bytes,7,opt,name=clusterName,proto3" json:"clusterName,omitempty"`
	AutoCreate  bool            `protobuf:"varint,8,opt,name=autoCreate,json=-,proto3" json:"autoCreate,omitempty"`
	OrgID       int64           `protobuf:"varint,9,opt,name=orgID,json=-,proto3" json:"orgID,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateNotifyGroupRequest) Descriptor deprecated

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

Deprecated: Use CreateNotifyGroupRequest.ProtoReflect.Descriptor instead.

func (*CreateNotifyGroupRequest) GetAutoCreate

func (x *CreateNotifyGroupRequest) GetAutoCreate() bool

func (*CreateNotifyGroupRequest) GetClusterName

func (x *CreateNotifyGroupRequest) GetClusterName() string

func (*CreateNotifyGroupRequest) GetCreator

func (x *CreateNotifyGroupRequest) GetCreator() string

func (*CreateNotifyGroupRequest) GetLabel

func (x *CreateNotifyGroupRequest) GetLabel() string

func (*CreateNotifyGroupRequest) GetName

func (x *CreateNotifyGroupRequest) GetName() string

func (*CreateNotifyGroupRequest) GetOrgID

func (x *CreateNotifyGroupRequest) GetOrgID() int64

func (*CreateNotifyGroupRequest) GetScopeId

func (x *CreateNotifyGroupRequest) GetScopeId() string

func (*CreateNotifyGroupRequest) GetScopeType

func (x *CreateNotifyGroupRequest) GetScopeType() string

func (*CreateNotifyGroupRequest) GetTargets

func (x *CreateNotifyGroupRequest) GetTargets() []*NotifyTarget

func (*CreateNotifyGroupRequest) MarshalJSON

func (m *CreateNotifyGroupRequest) MarshalJSON() ([]byte, error)

CreateNotifyGroupRequest implement json.Marshaler.

func (*CreateNotifyGroupRequest) ProtoMessage

func (*CreateNotifyGroupRequest) ProtoMessage()

func (*CreateNotifyGroupRequest) ProtoReflect

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

func (*CreateNotifyGroupRequest) Reset

func (x *CreateNotifyGroupRequest) Reset()

func (*CreateNotifyGroupRequest) String

func (x *CreateNotifyGroupRequest) String() string

func (*CreateNotifyGroupRequest) UnmarshalJSON

func (m *CreateNotifyGroupRequest) UnmarshalJSON(b []byte) error

CreateNotifyGroupRequest implement json.Marshaler.

func (*CreateNotifyGroupRequest) UnmarshalURLValues

func (m *CreateNotifyGroupRequest) UnmarshalURLValues(prefix string, values url.Values) error

CreateNotifyGroupRequest implement urlenc.URLValuesUnmarshaler.

func (*CreateNotifyGroupRequest) Validate

func (this *CreateNotifyGroupRequest) Validate() error

type CreateNotifyGroupResponse

type CreateNotifyGroupResponse struct {
	Data *NotifyGroup `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateNotifyGroupResponse) Descriptor deprecated

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

Deprecated: Use CreateNotifyGroupResponse.ProtoReflect.Descriptor instead.

func (*CreateNotifyGroupResponse) GetData

func (x *CreateNotifyGroupResponse) GetData() *NotifyGroup

func (*CreateNotifyGroupResponse) MarshalJSON

func (m *CreateNotifyGroupResponse) MarshalJSON() ([]byte, error)

CreateNotifyGroupResponse implement json.Marshaler.

func (*CreateNotifyGroupResponse) ProtoMessage

func (*CreateNotifyGroupResponse) ProtoMessage()

func (*CreateNotifyGroupResponse) ProtoReflect

func (*CreateNotifyGroupResponse) Reset

func (x *CreateNotifyGroupResponse) Reset()

func (*CreateNotifyGroupResponse) String

func (x *CreateNotifyGroupResponse) String() string

func (*CreateNotifyGroupResponse) UnmarshalJSON

func (m *CreateNotifyGroupResponse) UnmarshalJSON(b []byte) error

CreateNotifyGroupResponse implement json.Marshaler.

func (*CreateNotifyGroupResponse) UnmarshalURLValues

func (m *CreateNotifyGroupResponse) UnmarshalURLValues(prefix string, values url.Values) error

CreateNotifyGroupResponse implement urlenc.URLValuesUnmarshaler.

func (*CreateNotifyGroupResponse) Validate

func (this *CreateNotifyGroupResponse) Validate() error

type DeleteNotifyGroupRequest

type DeleteNotifyGroupRequest struct {
	GroupID int64 `protobuf:"varint,1,opt,name=groupID,proto3" json:"groupID,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteNotifyGroupRequest) Descriptor deprecated

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

Deprecated: Use DeleteNotifyGroupRequest.ProtoReflect.Descriptor instead.

func (*DeleteNotifyGroupRequest) GetGroupID

func (x *DeleteNotifyGroupRequest) GetGroupID() int64

func (*DeleteNotifyGroupRequest) MarshalJSON

func (m *DeleteNotifyGroupRequest) MarshalJSON() ([]byte, error)

DeleteNotifyGroupRequest implement json.Marshaler.

func (*DeleteNotifyGroupRequest) ProtoMessage

func (*DeleteNotifyGroupRequest) ProtoMessage()

func (*DeleteNotifyGroupRequest) ProtoReflect

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

func (*DeleteNotifyGroupRequest) Reset

func (x *DeleteNotifyGroupRequest) Reset()

func (*DeleteNotifyGroupRequest) String

func (x *DeleteNotifyGroupRequest) String() string

func (*DeleteNotifyGroupRequest) UnmarshalJSON

func (m *DeleteNotifyGroupRequest) UnmarshalJSON(b []byte) error

DeleteNotifyGroupRequest implement json.Marshaler.

func (*DeleteNotifyGroupRequest) UnmarshalURLValues

func (m *DeleteNotifyGroupRequest) UnmarshalURLValues(prefix string, values url.Values) error

DeleteNotifyGroupRequest implement urlenc.URLValuesUnmarshaler.

func (*DeleteNotifyGroupRequest) Validate

func (this *DeleteNotifyGroupRequest) Validate() error

type DeleteNotifyGroupResponse

type DeleteNotifyGroupResponse struct {
	Data *NotifyGroup `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteNotifyGroupResponse) Descriptor deprecated

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

Deprecated: Use DeleteNotifyGroupResponse.ProtoReflect.Descriptor instead.

func (*DeleteNotifyGroupResponse) GetData

func (x *DeleteNotifyGroupResponse) GetData() *NotifyGroup

func (*DeleteNotifyGroupResponse) MarshalJSON

func (m *DeleteNotifyGroupResponse) MarshalJSON() ([]byte, error)

DeleteNotifyGroupResponse implement json.Marshaler.

func (*DeleteNotifyGroupResponse) ProtoMessage

func (*DeleteNotifyGroupResponse) ProtoMessage()

func (*DeleteNotifyGroupResponse) ProtoReflect

func (*DeleteNotifyGroupResponse) Reset

func (x *DeleteNotifyGroupResponse) Reset()

func (*DeleteNotifyGroupResponse) String

func (x *DeleteNotifyGroupResponse) String() string

func (*DeleteNotifyGroupResponse) UnmarshalJSON

func (m *DeleteNotifyGroupResponse) UnmarshalJSON(b []byte) error

DeleteNotifyGroupResponse implement json.Marshaler.

func (*DeleteNotifyGroupResponse) UnmarshalURLValues

func (m *DeleteNotifyGroupResponse) UnmarshalURLValues(prefix string, values url.Values) error

DeleteNotifyGroupResponse implement urlenc.URLValuesUnmarshaler.

func (*DeleteNotifyGroupResponse) Validate

func (this *DeleteNotifyGroupResponse) Validate() error

type GetNotifyGroupDetailRequest

type GetNotifyGroupDetailRequest struct {
	GroupID int64 `protobuf:"varint,1,opt,name=groupID,proto3" json:"groupID,omitempty"`
	// contains filtered or unexported fields
}

func (*GetNotifyGroupDetailRequest) Descriptor deprecated

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

Deprecated: Use GetNotifyGroupDetailRequest.ProtoReflect.Descriptor instead.

func (*GetNotifyGroupDetailRequest) GetGroupID

func (x *GetNotifyGroupDetailRequest) GetGroupID() int64

func (*GetNotifyGroupDetailRequest) MarshalJSON

func (m *GetNotifyGroupDetailRequest) MarshalJSON() ([]byte, error)

GetNotifyGroupDetailRequest implement json.Marshaler.

func (*GetNotifyGroupDetailRequest) ProtoMessage

func (*GetNotifyGroupDetailRequest) ProtoMessage()

func (*GetNotifyGroupDetailRequest) ProtoReflect

func (*GetNotifyGroupDetailRequest) Reset

func (x *GetNotifyGroupDetailRequest) Reset()

func (*GetNotifyGroupDetailRequest) String

func (x *GetNotifyGroupDetailRequest) String() string

func (*GetNotifyGroupDetailRequest) UnmarshalJSON

func (m *GetNotifyGroupDetailRequest) UnmarshalJSON(b []byte) error

GetNotifyGroupDetailRequest implement json.Marshaler.

func (*GetNotifyGroupDetailRequest) UnmarshalURLValues

func (m *GetNotifyGroupDetailRequest) UnmarshalURLValues(prefix string, values url.Values) error

GetNotifyGroupDetailRequest implement urlenc.URLValuesUnmarshaler.

func (*GetNotifyGroupDetailRequest) Validate

func (this *GetNotifyGroupDetailRequest) Validate() error

type GetNotifyGroupDetailResponse

type GetNotifyGroupDetailResponse struct {
	Data *NotifyGroupDetail `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*GetNotifyGroupDetailResponse) Descriptor deprecated

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

Deprecated: Use GetNotifyGroupDetailResponse.ProtoReflect.Descriptor instead.

func (*GetNotifyGroupDetailResponse) GetData

func (*GetNotifyGroupDetailResponse) MarshalJSON

func (m *GetNotifyGroupDetailResponse) MarshalJSON() ([]byte, error)

GetNotifyGroupDetailResponse implement json.Marshaler.

func (*GetNotifyGroupDetailResponse) ProtoMessage

func (*GetNotifyGroupDetailResponse) ProtoMessage()

func (*GetNotifyGroupDetailResponse) ProtoReflect

func (*GetNotifyGroupDetailResponse) Reset

func (x *GetNotifyGroupDetailResponse) Reset()

func (*GetNotifyGroupDetailResponse) String

func (*GetNotifyGroupDetailResponse) UnmarshalJSON

func (m *GetNotifyGroupDetailResponse) UnmarshalJSON(b []byte) error

GetNotifyGroupDetailResponse implement json.Marshaler.

func (*GetNotifyGroupDetailResponse) UnmarshalURLValues

func (m *GetNotifyGroupDetailResponse) UnmarshalURLValues(prefix string, values url.Values) error

GetNotifyGroupDetailResponse implement urlenc.URLValuesUnmarshaler.

func (*GetNotifyGroupDetailResponse) Validate

func (this *GetNotifyGroupDetailResponse) Validate() error

type GetNotifyGroupRequest

type GetNotifyGroupRequest struct {
	GroupID int64 `protobuf:"varint,1,opt,name=groupID,proto3" json:"groupID,omitempty"`
	// contains filtered or unexported fields
}

func (*GetNotifyGroupRequest) Descriptor deprecated

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

Deprecated: Use GetNotifyGroupRequest.ProtoReflect.Descriptor instead.

func (*GetNotifyGroupRequest) GetGroupID

func (x *GetNotifyGroupRequest) GetGroupID() int64

func (*GetNotifyGroupRequest) MarshalJSON

func (m *GetNotifyGroupRequest) MarshalJSON() ([]byte, error)

GetNotifyGroupRequest implement json.Marshaler.

func (*GetNotifyGroupRequest) ProtoMessage

func (*GetNotifyGroupRequest) ProtoMessage()

func (*GetNotifyGroupRequest) ProtoReflect

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

func (*GetNotifyGroupRequest) Reset

func (x *GetNotifyGroupRequest) Reset()

func (*GetNotifyGroupRequest) String

func (x *GetNotifyGroupRequest) String() string

func (*GetNotifyGroupRequest) UnmarshalJSON

func (m *GetNotifyGroupRequest) UnmarshalJSON(b []byte) error

GetNotifyGroupRequest implement json.Marshaler.

func (*GetNotifyGroupRequest) UnmarshalURLValues

func (m *GetNotifyGroupRequest) UnmarshalURLValues(prefix string, values url.Values) error

GetNotifyGroupRequest implement urlenc.URLValuesUnmarshaler.

func (*GetNotifyGroupRequest) Validate

func (this *GetNotifyGroupRequest) Validate() error

type GetNotifyGroupResponse

type GetNotifyGroupResponse struct {
	Data    *NotifyGroup `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	UserIDs []string     `protobuf:"bytes,2,rep,name=userIDs,proto3" json:"userIDs,omitempty"`
	// contains filtered or unexported fields
}

func (*GetNotifyGroupResponse) Descriptor deprecated

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

Deprecated: Use GetNotifyGroupResponse.ProtoReflect.Descriptor instead.

func (*GetNotifyGroupResponse) GetData

func (x *GetNotifyGroupResponse) GetData() *NotifyGroup

func (*GetNotifyGroupResponse) GetUserIDs

func (x *GetNotifyGroupResponse) GetUserIDs() []string

func (*GetNotifyGroupResponse) MarshalJSON

func (m *GetNotifyGroupResponse) MarshalJSON() ([]byte, error)

GetNotifyGroupResponse implement json.Marshaler.

func (*GetNotifyGroupResponse) ProtoMessage

func (*GetNotifyGroupResponse) ProtoMessage()

func (*GetNotifyGroupResponse) ProtoReflect

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

func (*GetNotifyGroupResponse) Reset

func (x *GetNotifyGroupResponse) Reset()

func (*GetNotifyGroupResponse) String

func (x *GetNotifyGroupResponse) String() string

func (*GetNotifyGroupResponse) UnmarshalJSON

func (m *GetNotifyGroupResponse) UnmarshalJSON(b []byte) error

GetNotifyGroupResponse implement json.Marshaler.

func (*GetNotifyGroupResponse) UnmarshalURLValues

func (m *GetNotifyGroupResponse) UnmarshalURLValues(prefix string, values url.Values) error

GetNotifyGroupResponse implement urlenc.URLValuesUnmarshaler.

func (*GetNotifyGroupResponse) Validate

func (this *GetNotifyGroupResponse) Validate() error

type NotifyGroup

type NotifyGroup struct {
	Id        int64                  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name      string                 `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	ScopeType string                 `protobuf:"bytes,3,opt,name=scopeType,proto3" json:"scopeType,omitempty"`
	ScopeId   string                 `protobuf:"bytes,4,opt,name=scopeId,proto3" json:"scopeId,omitempty"`
	Targets   []*NotifyTarget        `protobuf:"bytes,5,rep,name=targets,proto3" json:"targets,omitempty"`
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
	Creator   string                 `protobuf:"bytes,7,opt,name=creator,proto3" json:"creator,omitempty"`
	Label     string                 `protobuf:"bytes,8,opt,name=label,proto3" json:"label,omitempty"`
	// contains filtered or unexported fields
}

func (*NotifyGroup) Descriptor deprecated

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

Deprecated: Use NotifyGroup.ProtoReflect.Descriptor instead.

func (*NotifyGroup) GetCreatedAt

func (x *NotifyGroup) GetCreatedAt() *timestamppb.Timestamp

func (*NotifyGroup) GetCreator

func (x *NotifyGroup) GetCreator() string

func (*NotifyGroup) GetId

func (x *NotifyGroup) GetId() int64

func (*NotifyGroup) GetLabel

func (x *NotifyGroup) GetLabel() string

func (*NotifyGroup) GetName

func (x *NotifyGroup) GetName() string

func (*NotifyGroup) GetScopeId

func (x *NotifyGroup) GetScopeId() string

func (*NotifyGroup) GetScopeType

func (x *NotifyGroup) GetScopeType() string

func (*NotifyGroup) GetTargets

func (x *NotifyGroup) GetTargets() []*NotifyTarget

func (*NotifyGroup) MarshalJSON

func (m *NotifyGroup) MarshalJSON() ([]byte, error)

NotifyGroup implement json.Marshaler.

func (*NotifyGroup) ProtoMessage

func (*NotifyGroup) ProtoMessage()

func (*NotifyGroup) ProtoReflect

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

func (*NotifyGroup) Reset

func (x *NotifyGroup) Reset()

func (*NotifyGroup) String

func (x *NotifyGroup) String() string

func (*NotifyGroup) UnmarshalJSON

func (m *NotifyGroup) UnmarshalJSON(b []byte) error

NotifyGroup implement json.Marshaler.

func (*NotifyGroup) UnmarshalURLValues

func (m *NotifyGroup) UnmarshalURLValues(prefix string, values url.Values) error

NotifyGroup implement urlenc.URLValuesUnmarshaler.

func (*NotifyGroup) Validate

func (this *NotifyGroup) Validate() error

type NotifyGroupDetail

type NotifyGroupDetail struct {
	Id                     int64           `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name                   string          `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	ScopeType              string          `protobuf:"bytes,3,opt,name=scopeType,proto3" json:"scopeType,omitempty"`
	ScopeId                string          `protobuf:"bytes,4,opt,name=scopeId,proto3" json:"scopeId,omitempty"`
	Users                  []*NotifyUser   `protobuf:"bytes,5,rep,name=users,proto3" json:"users,omitempty"`
	Targets                []*NotifyTarget `protobuf:"bytes,6,rep,name=targets,proto3" json:"targets,omitempty"`
	DingdingList           []*Target       `protobuf:"bytes,7,rep,name=dingdingList,proto3" json:"dingdingList,omitempty"`
	DingdingWorknoticeList []*Target       `protobuf:"bytes,8,rep,name=dingdingWorknoticeList,proto3" json:"dingdingWorknoticeList,omitempty"`
	WebhookList            []string        `protobuf:"bytes,9,rep,name=webhookList,proto3" json:"webhookList,omitempty"`
	// contains filtered or unexported fields
}

func (*NotifyGroupDetail) Descriptor deprecated

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

Deprecated: Use NotifyGroupDetail.ProtoReflect.Descriptor instead.

func (*NotifyGroupDetail) GetDingdingList

func (x *NotifyGroupDetail) GetDingdingList() []*Target

func (*NotifyGroupDetail) GetDingdingWorknoticeList

func (x *NotifyGroupDetail) GetDingdingWorknoticeList() []*Target

func (*NotifyGroupDetail) GetId

func (x *NotifyGroupDetail) GetId() int64

func (*NotifyGroupDetail) GetName

func (x *NotifyGroupDetail) GetName() string

func (*NotifyGroupDetail) GetScopeId

func (x *NotifyGroupDetail) GetScopeId() string

func (*NotifyGroupDetail) GetScopeType

func (x *NotifyGroupDetail) GetScopeType() string

func (*NotifyGroupDetail) GetTargets

func (x *NotifyGroupDetail) GetTargets() []*NotifyTarget

func (*NotifyGroupDetail) GetUsers

func (x *NotifyGroupDetail) GetUsers() []*NotifyUser

func (*NotifyGroupDetail) GetWebhookList

func (x *NotifyGroupDetail) GetWebhookList() []string

func (*NotifyGroupDetail) MarshalJSON

func (m *NotifyGroupDetail) MarshalJSON() ([]byte, error)

NotifyGroupDetail implement json.Marshaler.

func (*NotifyGroupDetail) ProtoMessage

func (*NotifyGroupDetail) ProtoMessage()

func (*NotifyGroupDetail) ProtoReflect

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

func (*NotifyGroupDetail) Reset

func (x *NotifyGroupDetail) Reset()

func (*NotifyGroupDetail) String

func (x *NotifyGroupDetail) String() string

func (*NotifyGroupDetail) UnmarshalJSON

func (m *NotifyGroupDetail) UnmarshalJSON(b []byte) error

NotifyGroupDetail implement json.Marshaler.

func (*NotifyGroupDetail) UnmarshalURLValues

func (m *NotifyGroupDetail) UnmarshalURLValues(prefix string, values url.Values) error

NotifyGroupDetail implement urlenc.URLValuesUnmarshaler.

func (*NotifyGroupDetail) Validate

func (this *NotifyGroupDetail) Validate() error

type NotifyGroupServiceClient

type NotifyGroupServiceClient interface {
	CreateNotifyGroup(ctx context.Context, in *CreateNotifyGroupRequest, opts ...grpc.CallOption) (*CreateNotifyGroupResponse, error)
	QueryNotifyGroup(ctx context.Context, in *QueryNotifyGroupRequest, opts ...grpc.CallOption) (*QueryNotifyGroupResponse, error)
	GetNotifyGroup(ctx context.Context, in *GetNotifyGroupRequest, opts ...grpc.CallOption) (*GetNotifyGroupResponse, error)
	UpdateNotifyGroup(ctx context.Context, in *UpdateNotifyGroupRequest, opts ...grpc.CallOption) (*UpdateNotifyGroupResponse, error)
	GetNotifyGroupDetail(ctx context.Context, in *GetNotifyGroupDetailRequest, opts ...grpc.CallOption) (*GetNotifyGroupDetailResponse, error)
	DeleteNotifyGroup(ctx context.Context, in *DeleteNotifyGroupRequest, opts ...grpc.CallOption) (*DeleteNotifyGroupResponse, error)
}

NotifyGroupServiceClient is the client API for NotifyGroupService 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 NotifyGroupServiceHandler

type NotifyGroupServiceHandler interface {
	// POST /api/msp/notify-groups
	CreateNotifyGroup(context.Context, *CreateNotifyGroupRequest) (*CreateNotifyGroupResponse, error)
	// GET /api/msp/notify-groups
	QueryNotifyGroup(context.Context, *QueryNotifyGroupRequest) (*QueryNotifyGroupResponse, error)
	// GET /api/msp/notify-groups/{groupID}
	GetNotifyGroup(context.Context, *GetNotifyGroupRequest) (*GetNotifyGroupResponse, error)
	// PUT /api/msp/notify-groups/{groupID}
	UpdateNotifyGroup(context.Context, *UpdateNotifyGroupRequest) (*UpdateNotifyGroupResponse, error)
	// GET /api/msp/notify-groups/{groupID}/detail
	GetNotifyGroupDetail(context.Context, *GetNotifyGroupDetailRequest) (*GetNotifyGroupDetailResponse, error)
	// DELETE /api/msp/notify-groups/{groupID}
	DeleteNotifyGroup(context.Context, *DeleteNotifyGroupRequest) (*DeleteNotifyGroupResponse, error)
}

NotifyGroupServiceHandler is the server API for NotifyGroupService service.

type NotifyGroupServiceServer

NotifyGroupServiceServer is the server API for NotifyGroupService service. All implementations should embed UnimplementedNotifyGroupServiceServer for forward compatibility

type NotifyTarget

type NotifyTarget struct {
	Type   string    `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	Values []*Target `protobuf:"bytes,2,rep,name=values,proto3" json:"values,omitempty"`
	// contains filtered or unexported fields
}

func (*NotifyTarget) Descriptor deprecated

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

Deprecated: Use NotifyTarget.ProtoReflect.Descriptor instead.

func (*NotifyTarget) GetType

func (x *NotifyTarget) GetType() string

func (*NotifyTarget) GetValues

func (x *NotifyTarget) GetValues() []*Target

func (*NotifyTarget) MarshalJSON

func (m *NotifyTarget) MarshalJSON() ([]byte, error)

NotifyTarget implement json.Marshaler.

func (*NotifyTarget) ProtoMessage

func (*NotifyTarget) ProtoMessage()

func (*NotifyTarget) ProtoReflect

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

func (*NotifyTarget) Reset

func (x *NotifyTarget) Reset()

func (*NotifyTarget) String

func (x *NotifyTarget) String() string

func (*NotifyTarget) UnmarshalJSON

func (m *NotifyTarget) UnmarshalJSON(b []byte) error

NotifyTarget implement json.Marshaler.

func (*NotifyTarget) UnmarshalURLValues

func (m *NotifyTarget) UnmarshalURLValues(prefix string, values url.Values) error

NotifyTarget implement urlenc.URLValuesUnmarshaler.

func (*NotifyTarget) Validate

func (this *NotifyTarget) Validate() error

type NotifyUser

type NotifyUser struct {
	Id       string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	Email    string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
	Mobile   string `protobuf:"bytes,4,opt,name=mobile,proto3" json:"mobile,omitempty"`
	Type     string `protobuf:"bytes,5,opt,name=type,proto3" json:"type,omitempty"`
	// contains filtered or unexported fields
}

func (*NotifyUser) Descriptor deprecated

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

Deprecated: Use NotifyUser.ProtoReflect.Descriptor instead.

func (*NotifyUser) GetEmail

func (x *NotifyUser) GetEmail() string

func (*NotifyUser) GetId

func (x *NotifyUser) GetId() string

func (*NotifyUser) GetMobile

func (x *NotifyUser) GetMobile() string

func (*NotifyUser) GetType

func (x *NotifyUser) GetType() string

func (*NotifyUser) GetUsername

func (x *NotifyUser) GetUsername() string

func (*NotifyUser) MarshalJSON

func (m *NotifyUser) MarshalJSON() ([]byte, error)

NotifyUser implement json.Marshaler.

func (*NotifyUser) ProtoMessage

func (*NotifyUser) ProtoMessage()

func (*NotifyUser) ProtoReflect

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

func (*NotifyUser) Reset

func (x *NotifyUser) Reset()

func (*NotifyUser) String

func (x *NotifyUser) String() string

func (*NotifyUser) UnmarshalJSON

func (m *NotifyUser) UnmarshalJSON(b []byte) error

NotifyUser implement json.Marshaler.

func (*NotifyUser) UnmarshalURLValues

func (m *NotifyUser) UnmarshalURLValues(prefix string, values url.Values) error

NotifyUser implement urlenc.URLValuesUnmarshaler.

func (*NotifyUser) Validate

func (this *NotifyUser) Validate() error

type QueryNotifyGroupData

type QueryNotifyGroupData struct {
	List  []*NotifyGroup `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
	Total int64          `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryNotifyGroupData) Descriptor deprecated

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

Deprecated: Use QueryNotifyGroupData.ProtoReflect.Descriptor instead.

func (*QueryNotifyGroupData) GetList

func (x *QueryNotifyGroupData) GetList() []*NotifyGroup

func (*QueryNotifyGroupData) GetTotal

func (x *QueryNotifyGroupData) GetTotal() int64

func (*QueryNotifyGroupData) MarshalJSON

func (m *QueryNotifyGroupData) MarshalJSON() ([]byte, error)

QueryNotifyGroupData implement json.Marshaler.

func (*QueryNotifyGroupData) ProtoMessage

func (*QueryNotifyGroupData) ProtoMessage()

func (*QueryNotifyGroupData) ProtoReflect

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

func (*QueryNotifyGroupData) Reset

func (x *QueryNotifyGroupData) Reset()

func (*QueryNotifyGroupData) String

func (x *QueryNotifyGroupData) String() string

func (*QueryNotifyGroupData) UnmarshalJSON

func (m *QueryNotifyGroupData) UnmarshalJSON(b []byte) error

QueryNotifyGroupData implement json.Marshaler.

func (*QueryNotifyGroupData) UnmarshalURLValues

func (m *QueryNotifyGroupData) UnmarshalURLValues(prefix string, values url.Values) error

QueryNotifyGroupData implement urlenc.URLValuesUnmarshaler.

func (*QueryNotifyGroupData) Validate

func (this *QueryNotifyGroupData) Validate() error

type QueryNotifyGroupRequest

type QueryNotifyGroupRequest struct {
	PageNo      int64    `protobuf:"varint,1,opt,name=pageNo,proto3" json:"pageNo,omitempty"`
	PageSize    int64    `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"`
	ScopeType   string   `protobuf:"bytes,3,opt,name=scopeType,proto3" json:"scopeType,omitempty"`
	ScopeId     string   `protobuf:"bytes,4,opt,name=scopeId,proto3" json:"scopeId,omitempty"`
	Label       string   `protobuf:"bytes,5,opt,name=label,proto3" json:"label,omitempty"`
	ClusterName string   `protobuf:"bytes,6,opt,name=clusterName,proto3" json:"clusterName,omitempty"`
	Names       []string `protobuf:"bytes,7,rep,name=names,proto3" json:"names,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryNotifyGroupRequest) Descriptor deprecated

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

Deprecated: Use QueryNotifyGroupRequest.ProtoReflect.Descriptor instead.

func (*QueryNotifyGroupRequest) GetClusterName

func (x *QueryNotifyGroupRequest) GetClusterName() string

func (*QueryNotifyGroupRequest) GetLabel

func (x *QueryNotifyGroupRequest) GetLabel() string

func (*QueryNotifyGroupRequest) GetNames

func (x *QueryNotifyGroupRequest) GetNames() []string

func (*QueryNotifyGroupRequest) GetPageNo

func (x *QueryNotifyGroupRequest) GetPageNo() int64

func (*QueryNotifyGroupRequest) GetPageSize

func (x *QueryNotifyGroupRequest) GetPageSize() int64

func (*QueryNotifyGroupRequest) GetScopeId

func (x *QueryNotifyGroupRequest) GetScopeId() string

func (*QueryNotifyGroupRequest) GetScopeType

func (x *QueryNotifyGroupRequest) GetScopeType() string

func (*QueryNotifyGroupRequest) MarshalJSON

func (m *QueryNotifyGroupRequest) MarshalJSON() ([]byte, error)

QueryNotifyGroupRequest implement json.Marshaler.

func (*QueryNotifyGroupRequest) ProtoMessage

func (*QueryNotifyGroupRequest) ProtoMessage()

func (*QueryNotifyGroupRequest) ProtoReflect

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

func (*QueryNotifyGroupRequest) Reset

func (x *QueryNotifyGroupRequest) Reset()

func (*QueryNotifyGroupRequest) String

func (x *QueryNotifyGroupRequest) String() string

func (*QueryNotifyGroupRequest) UnmarshalJSON

func (m *QueryNotifyGroupRequest) UnmarshalJSON(b []byte) error

QueryNotifyGroupRequest implement json.Marshaler.

func (*QueryNotifyGroupRequest) UnmarshalURLValues

func (m *QueryNotifyGroupRequest) UnmarshalURLValues(prefix string, values url.Values) error

QueryNotifyGroupRequest implement urlenc.URLValuesUnmarshaler.

func (*QueryNotifyGroupRequest) Validate

func (this *QueryNotifyGroupRequest) Validate() error

type QueryNotifyGroupResponse

type QueryNotifyGroupResponse struct {
	Data    *QueryNotifyGroupData `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	UserIDs []string              `protobuf:"bytes,2,rep,name=userIDs,proto3" json:"userIDs,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryNotifyGroupResponse) Descriptor deprecated

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

Deprecated: Use QueryNotifyGroupResponse.ProtoReflect.Descriptor instead.

func (*QueryNotifyGroupResponse) GetData

func (*QueryNotifyGroupResponse) GetUserIDs added in v1.3.1

func (x *QueryNotifyGroupResponse) GetUserIDs() []string

func (*QueryNotifyGroupResponse) MarshalJSON

func (m *QueryNotifyGroupResponse) MarshalJSON() ([]byte, error)

QueryNotifyGroupResponse implement json.Marshaler.

func (*QueryNotifyGroupResponse) ProtoMessage

func (*QueryNotifyGroupResponse) ProtoMessage()

func (*QueryNotifyGroupResponse) ProtoReflect

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

func (*QueryNotifyGroupResponse) Reset

func (x *QueryNotifyGroupResponse) Reset()

func (*QueryNotifyGroupResponse) String

func (x *QueryNotifyGroupResponse) String() string

func (*QueryNotifyGroupResponse) UnmarshalJSON

func (m *QueryNotifyGroupResponse) UnmarshalJSON(b []byte) error

QueryNotifyGroupResponse implement json.Marshaler.

func (*QueryNotifyGroupResponse) UnmarshalURLValues

func (m *QueryNotifyGroupResponse) UnmarshalURLValues(prefix string, values url.Values) error

QueryNotifyGroupResponse implement urlenc.URLValuesUnmarshaler.

func (*QueryNotifyGroupResponse) Validate

func (this *QueryNotifyGroupResponse) Validate() error

type Target

type Target struct {
	Receiver string `protobuf:"bytes,1,opt,name=receiver,proto3" json:"receiver,omitempty"`
	Secret   string `protobuf:"bytes,2,opt,name=secret,proto3" json:"secret,omitempty"`
	// contains filtered or unexported fields
}

func (*Target) Descriptor deprecated

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

Deprecated: Use Target.ProtoReflect.Descriptor instead.

func (*Target) GetReceiver

func (x *Target) GetReceiver() string

func (*Target) GetSecret

func (x *Target) GetSecret() string

func (*Target) MarshalJSON

func (m *Target) MarshalJSON() ([]byte, error)

Target implement json.Marshaler.

func (*Target) ProtoMessage

func (*Target) ProtoMessage()

func (*Target) ProtoReflect

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

func (*Target) Reset

func (x *Target) Reset()

func (*Target) String

func (x *Target) String() string

func (*Target) UnmarshalJSON

func (m *Target) UnmarshalJSON(b []byte) error

Target implement json.Marshaler.

func (*Target) UnmarshalURLValues

func (m *Target) UnmarshalURLValues(prefix string, values url.Values) error

Target implement urlenc.URLValuesUnmarshaler.

func (*Target) Validate

func (this *Target) Validate() error

type UnimplementedNotifyGroupServiceServer

type UnimplementedNotifyGroupServiceServer struct {
}

UnimplementedNotifyGroupServiceServer should be embedded to have forward compatible implementations.

func (*UnimplementedNotifyGroupServiceServer) CreateNotifyGroup

func (*UnimplementedNotifyGroupServiceServer) DeleteNotifyGroup

func (*UnimplementedNotifyGroupServiceServer) GetNotifyGroup

func (*UnimplementedNotifyGroupServiceServer) GetNotifyGroupDetail

func (*UnimplementedNotifyGroupServiceServer) QueryNotifyGroup

func (*UnimplementedNotifyGroupServiceServer) UpdateNotifyGroup

type UpdateNotifyGroupRequest

type UpdateNotifyGroupRequest struct {
	Id      int64           `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name    string          `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Targets []*NotifyTarget `protobuf:"bytes,3,rep,name=targets,proto3" json:"targets,omitempty"`
	GroupID int64           `protobuf:"varint,4,opt,name=groupID,proto3" json:"groupID,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateNotifyGroupRequest) Descriptor deprecated

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

Deprecated: Use UpdateNotifyGroupRequest.ProtoReflect.Descriptor instead.

func (*UpdateNotifyGroupRequest) GetGroupID

func (x *UpdateNotifyGroupRequest) GetGroupID() int64

func (*UpdateNotifyGroupRequest) GetId

func (x *UpdateNotifyGroupRequest) GetId() int64

func (*UpdateNotifyGroupRequest) GetName

func (x *UpdateNotifyGroupRequest) GetName() string

func (*UpdateNotifyGroupRequest) GetTargets

func (x *UpdateNotifyGroupRequest) GetTargets() []*NotifyTarget

func (*UpdateNotifyGroupRequest) MarshalJSON

func (m *UpdateNotifyGroupRequest) MarshalJSON() ([]byte, error)

UpdateNotifyGroupRequest implement json.Marshaler.

func (*UpdateNotifyGroupRequest) ProtoMessage

func (*UpdateNotifyGroupRequest) ProtoMessage()

func (*UpdateNotifyGroupRequest) ProtoReflect

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

func (*UpdateNotifyGroupRequest) Reset

func (x *UpdateNotifyGroupRequest) Reset()

func (*UpdateNotifyGroupRequest) String

func (x *UpdateNotifyGroupRequest) String() string

func (*UpdateNotifyGroupRequest) UnmarshalJSON

func (m *UpdateNotifyGroupRequest) UnmarshalJSON(b []byte) error

UpdateNotifyGroupRequest implement json.Marshaler.

func (*UpdateNotifyGroupRequest) UnmarshalURLValues

func (m *UpdateNotifyGroupRequest) UnmarshalURLValues(prefix string, values url.Values) error

UpdateNotifyGroupRequest implement urlenc.URLValuesUnmarshaler.

func (*UpdateNotifyGroupRequest) Validate

func (this *UpdateNotifyGroupRequest) Validate() error

type UpdateNotifyGroupResponse

type UpdateNotifyGroupResponse struct {
	Data *NotifyGroup `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateNotifyGroupResponse) Descriptor deprecated

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

Deprecated: Use UpdateNotifyGroupResponse.ProtoReflect.Descriptor instead.

func (*UpdateNotifyGroupResponse) GetData

func (x *UpdateNotifyGroupResponse) GetData() *NotifyGroup

func (*UpdateNotifyGroupResponse) MarshalJSON

func (m *UpdateNotifyGroupResponse) MarshalJSON() ([]byte, error)

UpdateNotifyGroupResponse implement json.Marshaler.

func (*UpdateNotifyGroupResponse) ProtoMessage

func (*UpdateNotifyGroupResponse) ProtoMessage()

func (*UpdateNotifyGroupResponse) ProtoReflect

func (*UpdateNotifyGroupResponse) Reset

func (x *UpdateNotifyGroupResponse) Reset()

func (*UpdateNotifyGroupResponse) String

func (x *UpdateNotifyGroupResponse) String() string

func (*UpdateNotifyGroupResponse) UnmarshalJSON

func (m *UpdateNotifyGroupResponse) UnmarshalJSON(b []byte) error

UpdateNotifyGroupResponse implement json.Marshaler.

func (*UpdateNotifyGroupResponse) UnmarshalURLValues

func (m *UpdateNotifyGroupResponse) UnmarshalURLValues(prefix string, values url.Values) error

UpdateNotifyGroupResponse implement urlenc.URLValuesUnmarshaler.

func (*UpdateNotifyGroupResponse) Validate

func (this *UpdateNotifyGroupResponse) Validate() error

type UserInfo

type UserInfo struct {
	Id          string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Name        string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Nick        string `protobuf:"bytes,3,opt,name=nick,proto3" json:"nick,omitempty"`
	Avatar      string `protobuf:"bytes,4,opt,name=avatar,proto3" json:"avatar,omitempty"`
	Phone       string `protobuf:"bytes,5,opt,name=phone,proto3" json:"phone,omitempty"`
	Email       string `protobuf:"bytes,6,opt,name=email,proto3" json:"email,omitempty"`
	Token       string `protobuf:"bytes,7,opt,name=token,proto3" json:"token,omitempty"`
	LastLoginAt string `protobuf:"bytes,8,opt,name=lastLoginAt,proto3" json:"lastLoginAt,omitempty"`
	PwdExpireAt string `protobuf:"bytes,9,opt,name=pwdExpireAt,proto3" json:"pwdExpireAt,omitempty"`
	Source      string `protobuf:"bytes,10,opt,name=source,proto3" json:"source,omitempty"`
	// contains filtered or unexported fields
}

func (*UserInfo) Descriptor deprecated

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

Deprecated: Use UserInfo.ProtoReflect.Descriptor instead.

func (*UserInfo) GetAvatar

func (x *UserInfo) GetAvatar() string

func (*UserInfo) GetEmail

func (x *UserInfo) GetEmail() string

func (*UserInfo) GetId

func (x *UserInfo) GetId() string

func (*UserInfo) GetLastLoginAt

func (x *UserInfo) GetLastLoginAt() string

func (*UserInfo) GetName

func (x *UserInfo) GetName() string

func (*UserInfo) GetNick

func (x *UserInfo) GetNick() string

func (*UserInfo) GetPhone

func (x *UserInfo) GetPhone() string

func (*UserInfo) GetPwdExpireAt

func (x *UserInfo) GetPwdExpireAt() string

func (*UserInfo) GetSource

func (x *UserInfo) GetSource() string

func (*UserInfo) GetToken

func (x *UserInfo) GetToken() string

func (*UserInfo) MarshalJSON

func (m *UserInfo) MarshalJSON() ([]byte, error)

UserInfo implement json.Marshaler.

func (*UserInfo) ProtoMessage

func (*UserInfo) ProtoMessage()

func (*UserInfo) ProtoReflect

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

func (*UserInfo) Reset

func (x *UserInfo) Reset()

func (*UserInfo) String

func (x *UserInfo) String() string

func (*UserInfo) UnmarshalJSON

func (m *UserInfo) UnmarshalJSON(b []byte) error

UserInfo implement json.Marshaler.

func (*UserInfo) UnmarshalURLValues

func (m *UserInfo) UnmarshalURLValues(prefix string, values url.Values) error

UserInfo implement urlenc.URLValuesUnmarshaler.

func (*UserInfo) Validate

func (this *UserInfo) Validate() error

Jump to

Keyboard shortcuts

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