Documentation ¶
Index ¶
- Variables
- type RelationService
- type RelationServiceImpl
- func (s *RelationServiceImpl) CreateRelation(ctx context.Context, req *genrelation.CreateRelationReq) (resp *genrelation.CreateRelationResp, err error)
- func (s *RelationServiceImpl) DeleteRelation(ctx context.Context, req *genrelation.DeleteRelationReq) (resp *genrelation.DeleteRelationResp, err error)
- func (s *RelationServiceImpl) GetRelation(ctx context.Context, req *genrelation.GetRelationReq) (resp *genrelation.GetRelationResp, err error)
- func (s *RelationServiceImpl) GetRelationCount(ctx context.Context, req *genrelation.GetRelationCountReq) (resp *genrelation.GetRelationCountResp, err error)
- func (s *RelationServiceImpl) GetRelations(ctx context.Context, req *genrelation.GetRelationsReq) (resp *genrelation.GetRelationsResp, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var RelationSet = wire.NewSet( wire.Struct(new(RelationServiceImpl), "*"), wire.Bind(new(RelationService), new(*RelationServiceImpl)), )
Functions ¶
This section is empty.
Types ¶
type RelationService ¶
type RelationService interface { CreateRelation(ctx context.Context, req *genrelation.CreateRelationReq) (resp *genrelation.CreateRelationResp, err error) GetRelation(ctx context.Context, req *genrelation.GetRelationReq) (resp *genrelation.GetRelationResp, err error) DeleteRelation(ctx context.Context, req *genrelation.DeleteRelationReq) (resp *genrelation.DeleteRelationResp, err error) GetRelations(ctx context.Context, req *genrelation.GetRelationsReq) (resp *genrelation.GetRelationsResp, err error) GetRelationCount(ctx context.Context, req *genrelation.GetRelationCountReq) (resp *genrelation.GetRelationCountResp, err error) }
type RelationServiceImpl ¶
type RelationServiceImpl struct { Config *config.Config Redis *redis.Redis RelationModel relationmapper.RelationNeo4jMapper }
func (*RelationServiceImpl) CreateRelation ¶
func (s *RelationServiceImpl) CreateRelation(ctx context.Context, req *genrelation.CreateRelationReq) (resp *genrelation.CreateRelationResp, err error)
func (*RelationServiceImpl) DeleteRelation ¶
func (s *RelationServiceImpl) DeleteRelation(ctx context.Context, req *genrelation.DeleteRelationReq) (resp *genrelation.DeleteRelationResp, err error)
func (*RelationServiceImpl) GetRelation ¶
func (s *RelationServiceImpl) GetRelation(ctx context.Context, req *genrelation.GetRelationReq) (resp *genrelation.GetRelationResp, err error)
func (*RelationServiceImpl) GetRelationCount ¶
func (s *RelationServiceImpl) GetRelationCount(ctx context.Context, req *genrelation.GetRelationCountReq) (resp *genrelation.GetRelationCountResp, err error)
func (*RelationServiceImpl) GetRelations ¶
func (s *RelationServiceImpl) GetRelations(ctx context.Context, req *genrelation.GetRelationsReq) (resp *genrelation.GetRelationsResp, err error)
Click to show internal directories.
Click to hide internal directories.