Documentation ¶
Index ¶
- func ToConfigFieldsPb(in []*types.ProtocolConfigField) (ret []*dm.ProtocolConfigField)
- func ToConfigFieldsTypes(in []*dm.ProtocolConfigField) (ret []*types.ProtocolConfigField)
- func ToConfigInfosPb(in []*types.ProtocolConfigInfo) (ret []*dm.ProtocolConfigInfo)
- func ToConfigInfosTypes(in []*dm.ProtocolConfigInfo) (ret []*types.ProtocolConfigInfo)
- func ToInfoPb(in *types.ProtocolInfo) *dm.ProtocolInfo
- func ToInfoTypes(in *dm.ProtocolInfo) *types.ProtocolInfo
- func ToInfosTypes(in []*dm.ProtocolInfo) (ret []*types.ProtocolInfo)
- type CreateLogic
- type DeleteLogic
- type IndexLogic
- type ReadLogic
- type UpdateLogic
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToConfigFieldsPb ¶
func ToConfigFieldsPb(in []*types.ProtocolConfigField) (ret []*dm.ProtocolConfigField)
func ToConfigFieldsTypes ¶
func ToConfigFieldsTypes(in []*dm.ProtocolConfigField) (ret []*types.ProtocolConfigField)
func ToConfigInfosPb ¶
func ToConfigInfosPb(in []*types.ProtocolConfigInfo) (ret []*dm.ProtocolConfigInfo)
func ToConfigInfosTypes ¶
func ToConfigInfosTypes(in []*dm.ProtocolConfigInfo) (ret []*types.ProtocolConfigInfo)
func ToInfoPb ¶
func ToInfoPb(in *types.ProtocolInfo) *dm.ProtocolInfo
func ToInfoTypes ¶
func ToInfoTypes(in *dm.ProtocolInfo) *types.ProtocolInfo
func ToInfosTypes ¶
func ToInfosTypes(in []*dm.ProtocolInfo) (ret []*types.ProtocolInfo)
Types ¶
type CreateLogic ¶
func NewCreateLogic ¶
func NewCreateLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CreateLogic
func (*CreateLogic) Create ¶
func (l *CreateLogic) Create(req *types.ProtocolInfo) (*types.WithID, error)
type DeleteLogic ¶
func NewDeleteLogic ¶
func NewDeleteLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeleteLogic
type IndexLogic ¶
func NewIndexLogic ¶
func NewIndexLogic(ctx context.Context, svcCtx *svc.ServiceContext) *IndexLogic
func (*IndexLogic) Index ¶
func (l *IndexLogic) Index(req *types.ProtocolInfoIndexReq) (resp *types.ProtocolInfoIndexResp, err error)
type ReadLogic ¶
func NewReadLogic ¶
func NewReadLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ReadLogic
func (*ReadLogic) Read ¶
func (l *ReadLogic) Read(req *types.WithIDOrCode) (resp *types.ProtocolInfo, err error)
type UpdateLogic ¶
func NewUpdateLogic ¶
func NewUpdateLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UpdateLogic
func (*UpdateLogic) Update ¶
func (l *UpdateLogic) Update(req *types.ProtocolInfo) error
Click to show internal directories.
Click to hide internal directories.