Documentation ¶
Index ¶
- Variables
- type Echo
- type EchoCase
- func (uc *EchoCase) CreateEcho(ctx context.Context, message string) (*Echo, error)
- func (uc *EchoCase) DeleteEcho(ctx context.Context, id int64) error
- func (uc *EchoCase) GetEcho(ctx context.Context, id int64) (*Echo, error)
- func (uc *EchoCase) ListEcho(ctx context.Context, offset, limit int64) ([]*Echo, error)
- func (uc *EchoCase) UpdateEcho(ctx context.Context, id int64, message string) (*Echo, error)
- type EchoRepo
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("echo record not found")
View Source
var ProviderSet = wire.NewSet(NewEchoCase)
ProviderSet provided NewEchoCase.
Functions ¶
This section is empty.
Types ¶
type EchoCase ¶
type EchoCase struct {
// contains filtered or unexported fields
}
EchoCase handle EchoRepo interface.
func NewEchoCase ¶
NewEchoCase creates a new EchoCase.
func (*EchoCase) CreateEcho ¶
type EchoRepo ¶
type EchoRepo interface { CreateEcho(ctx context.Context, echo *Echo) (*Echo, error) ListEcho(ctx context.Context, offset, limit int64) ([]*Echo, error) UpdateEcho(ctx context.Context, echo *Echo) (*Echo, error) DeleteEcho(ctx context.Context, ID int64) error GetEcho(ctx context.Context, ID int64) (*Echo, error) }
EchoRepo is a interface to access dao.
Click to show internal directories.
Click to hide internal directories.