info

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

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

type CreateLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

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

type DeleteLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewDeleteLogic

func NewDeleteLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DeleteLogic

func (*DeleteLogic) Delete

func (l *DeleteLogic) Delete(req *types.WithID) error

type IndexLogic

type IndexLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewIndexLogic

func NewIndexLogic(ctx context.Context, svcCtx *svc.ServiceContext) *IndexLogic

func (*IndexLogic) Index

type ReadLogic

type ReadLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

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

type UpdateLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewUpdateLogic

func NewUpdateLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UpdateLogic

func (*UpdateLogic) Update

func (l *UpdateLogic) Update(req *types.ProtocolInfo) error

Jump to

Keyboard shortcuts

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