mydomain

package
v0.151.0 Latest Latest
Warning

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

Go to latest
Published: May 11, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MyUseCase

type MyUseCase struct {
	Storage // example dependency
}

func (*MyUseCase) Foo

func (i *MyUseCase) Foo(ctx context.Context) (string, error)

func (*MyUseCase) IsLower

func (i *MyUseCase) IsLower(s string) bool

func (*MyUseCase) MyFunc

func (i *MyUseCase) MyFunc()

func (*MyUseCase) MyFuncThatNeedsSomething

func (i *MyUseCase) MyFuncThatNeedsSomething(something any)

func (*MyUseCase) ThreadSafeCall

func (i *MyUseCase) ThreadSafeCall()

type Storage

type Storage interface {
	BeginTx(context.Context) (context.Context, error)
	CommitTx(context.Context) error
	RollbackTx(context.Context) error
}

Jump to

Keyboard shortcuts

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