Documentation ¶
Index ¶
- type Hash
- type Hasher
- type Service
- func (s *Service) DeleteById(ctx context.Context, r *proto.DeleteByIdRequest) (*proto.DeleteByIdResponse, error)
- func (s *Service) FindById(ctx context.Context, r *proto.FindByIdRequest) (*proto.FindSingleResponse, error)
- func (s *Service) FindMany(ctx context.Context, r *proto.FindManyRequest) (*proto.FindManyResponse, error)
- func (s *Service) Register(ctx context.Context, r *proto.RegisterRequest) (*proto.RegisterResponse, error)
- func (s *Service) UpdateById(ctx context.Context, r *proto.UpdateByIdRequest) (*proto.FindSingleResponse, error)
- type Store
- func (s *Store) Create(ctx context.Context, input *proto.InputAccount) (int64, error)
- func (s *Store) DeleteById(ctx context.Context, id int64) error
- func (s *Store) FindById(ctx context.Context, id int64) (*proto.Account, error)
- func (s *Store) FindMany(ctx context.Context) ([]*proto.Account, error)
- func (s *Store) UpdateById(ctx context.Context, id int64, input *proto.InputAccount) (*proto.Account, error)
- type Storer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct { proto.UnimplementedAccountServiceServer // contains filtered or unexported fields }
func NewService ¶
func (*Service) DeleteById ¶
func (s *Service) DeleteById(ctx context.Context, r *proto.DeleteByIdRequest) (*proto.DeleteByIdResponse, error)
func (*Service) FindById ¶
func (s *Service) FindById(ctx context.Context, r *proto.FindByIdRequest) (*proto.FindSingleResponse, error)
func (*Service) FindMany ¶
func (s *Service) FindMany(ctx context.Context, r *proto.FindManyRequest) (*proto.FindManyResponse, error)
func (*Service) Register ¶
func (s *Service) Register(ctx context.Context, r *proto.RegisterRequest) (*proto.RegisterResponse, error)
func (*Service) UpdateById ¶
func (s *Service) UpdateById(ctx context.Context, r *proto.UpdateByIdRequest) (*proto.FindSingleResponse, error)
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
type Storer ¶
type Storer interface { FindMany(ctx context.Context) ([]*proto.Account, error) FindById(ctx context.Context, id int64) (*proto.Account, error) Create(ctx context.Context, input *proto.InputAccount) (int64, error) UpdateById(ctx context.Context, id int64, input *proto.InputAccount) (*proto.Account, error) DeleteById(ctx context.Context, id int64) error }
Click to show internal directories.
Click to hide internal directories.