Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListenGRPC ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetAccount ¶
func (*Client) GetAccounts ¶
type Repository ¶
type Repository interface { Close() PutAccount(ctx context.Context, a Account) error GetAccountByID(ctx context.Context, id string) (*Account, error) ListAccounts(ctx context.Context, skip uint64, take uint64) ([]Account, error) }
func NewPostgresRepository ¶
func NewPostgresRepository(url string) (Repository, error)
type Service ¶
type Service interface { PostAccount(ctx context.Context, name string) (*Account, error) GetAccount(ctx context.Context, id string) (*Account, error) GetAccounts(ctx context.Context, skip uint64, take uint64) ([]Account, error) }
func NewService ¶
func NewService(r Repository) Service
Click to show internal directories.
Click to hide internal directories.