Documentation ¶
Index ¶
- type StockService
- func (s *StockService) CreatePlasmid(ctx context.Context, r *stock.NewPlasmid) (*stock.Plasmid, error)
- func (s *StockService) CreateStrain(ctx context.Context, r *stock.NewStrain) (*stock.Strain, error)
- func (s *StockService) GetPlasmid(ctx context.Context, r *stock.StockId) (*stock.Plasmid, error)
- func (s *StockService) GetStrain(ctx context.Context, r *stock.StockId) (*stock.Strain, error)
- func (s *StockService) ListPlasmids(ctx context.Context, r *stock.StockParameters) (*stock.PlasmidCollection, error)
- func (s *StockService) ListStrains(ctx context.Context, param *stock.StockParameters) (*stock.StrainCollection, error)
- func (s *StockService) ListStrainsByIDs(ctx context.Context, r *stock.StockIdList) (*stock.StrainList, error)
- func (s *StockService) LoadPlasmid(ctx context.Context, r *stock.ExistingPlasmid) (*stock.Plasmid, error)
- func (s *StockService) LoadStrain(ctx context.Context, r *stock.ExistingStrain) (*stock.Strain, error)
- func (s *StockService) OboJSONFileUpload(stream stock.StockService_OboJSONFileUploadServer) error
- func (s *StockService) RemoveStock(ctx context.Context, r *stock.StockId) (*empty.Empty, error)
- func (s *StockService) UpdatePlasmid(ctx context.Context, r *stock.PlasmidUpdate) (*stock.Plasmid, error)
- func (s *StockService) UpdateStrain(ctx context.Context, r *stock.StrainUpdate) (*stock.Strain, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StockService ¶
type StockService struct { *aphgrpc.Service stock.UnimplementedStockServiceServer // contains filtered or unexported fields }
StockService is the container for managing stock service definition
func NewStockService ¶
func NewStockService( repo repository.StockRepository, pub message.Publisher, opt ...aphgrpc.Option, ) *StockService
NewStockService is the constructor for creating a new instance of StockService
func (*StockService) CreatePlasmid ¶
func (s *StockService) CreatePlasmid( ctx context.Context, r *stock.NewPlasmid, ) (*stock.Plasmid, error)
CreatePlasmid handles the creation of a new plasmid
func (*StockService) CreateStrain ¶
func (s *StockService) CreateStrain( ctx context.Context, r *stock.NewStrain, ) (*stock.Strain, error)
CreateStrain handles the creation of a new strain
func (*StockService) GetPlasmid ¶
GetPlasmid handles getting a plasmid by its ID
func (*StockService) ListPlasmids ¶
func (s *StockService) ListPlasmids( ctx context.Context, r *stock.StockParameters, ) (*stock.PlasmidCollection, error)
ListPlasmids lists all existing plasmids
func (*StockService) ListStrains ¶
func (s *StockService) ListStrains( ctx context.Context, param *stock.StockParameters, ) (*stock.StrainCollection, error)
ListStrains lists all existing strains
func (*StockService) ListStrainsByIDs ¶
func (s *StockService) ListStrainsByIDs( ctx context.Context, r *stock.StockIdList, ) (*stock.StrainList, error)
ListStrainsByIds gets a list of strains from a list of strain identifiers
func (*StockService) LoadPlasmid ¶
func (s *StockService) LoadPlasmid( ctx context.Context, r *stock.ExistingPlasmid, ) (*stock.Plasmid, error)
LoadPlasmid loads plasmids with existing IDs into the database
func (*StockService) LoadStrain ¶
func (s *StockService) LoadStrain( ctx context.Context, r *stock.ExistingStrain, ) (*stock.Strain, error)
LoadStock loads strains with existing IDs into the database
func (*StockService) OboJSONFileUpload ¶
func (s *StockService) OboJSONFileUpload( stream stock.StockService_OboJSONFileUploadServer, ) error
func (*StockService) RemoveStock ¶
RemoveStock removes an existing stock
func (*StockService) UpdatePlasmid ¶
func (s *StockService) UpdatePlasmid( ctx context.Context, r *stock.PlasmidUpdate, ) (*stock.Plasmid, error)
UpdatePlasmid handles updating an existing plasmid
func (*StockService) UpdateStrain ¶
func (s *StockService) UpdateStrain( ctx context.Context, r *stock.StrainUpdate, ) (*stock.Strain, error)
UpdateStrain handles updating an existing strain