Documentation ¶
Index ¶
- type Annotation
- func (an *Annotation) GetBasicStrainInfo(strains []*stock.Strain) ([][]string, error)
- func (an *Annotation) GetPlasmidInv(plasmids []*stock.Plasmid) ([][]string, error)
- func (an *Annotation) GetStrainInfo(strains []*stock.Strain) ([][]string, error)
- func (an *Annotation) GetStrainInv(strains []*stock.Strain) ([][]string, error)
- type GraphqlAuthor
- type PubInfo
- type PubQuery
- type Publication
- type Sources
- type Stock
- type StockServiceClient
- func (_m *StockServiceClient) CreatePlasmid(ctx context.Context, in *stock.NewPlasmid, opts ...grpc.CallOption) (*stock.Plasmid, error)
- func (_m *StockServiceClient) CreateStrain(ctx context.Context, in *stock.NewStrain, opts ...grpc.CallOption) (*stock.Strain, error)
- func (_m *StockServiceClient) GetPlasmid(ctx context.Context, in *stock.StockId, opts ...grpc.CallOption) (*stock.Plasmid, error)
- func (_m *StockServiceClient) GetStrain(ctx context.Context, in *stock.StockId, opts ...grpc.CallOption) (*stock.Strain, error)
- func (_m *StockServiceClient) ListPlasmids(ctx context.Context, in *stock.StockParameters, opts ...grpc.CallOption) (*stock.PlasmidCollection, error)
- func (_m *StockServiceClient) ListStrains(ctx context.Context, in *stock.StockParameters, opts ...grpc.CallOption) (*stock.StrainCollection, error)
- func (_m *StockServiceClient) LoadPlasmid(ctx context.Context, in *stock.ExistingPlasmid, opts ...grpc.CallOption) (*stock.Plasmid, error)
- func (_m *StockServiceClient) LoadStrain(ctx context.Context, in *stock.ExistingStrain, opts ...grpc.CallOption) (*stock.Strain, error)
- func (_m *StockServiceClient) RemoveStock(ctx context.Context, in *stock.StockId, opts ...grpc.CallOption) (*empty.Empty, error)
- func (_m *StockServiceClient) UpdatePlasmid(ctx context.Context, in *stock.PlasmidUpdate, opts ...grpc.CallOption) (*stock.Plasmid, error)
- func (_m *StockServiceClient) UpdateStrain(ctx context.Context, in *stock.StrainUpdate, opts ...grpc.CallOption) (*stock.Strain, error)
- type TaggedAnnotationServiceClient
- func (_m *TaggedAnnotationServiceClient) AddToAnnotationGroup(ctx context.Context, in *annotation.AnnotationGroupId, opts ...grpc.CallOption) (*annotation.TaggedAnnotationGroup, error)
- func (_m *TaggedAnnotationServiceClient) CreateAnnotation(ctx context.Context, in *annotation.NewTaggedAnnotation, ...) (*annotation.TaggedAnnotation, error)
- func (_m *TaggedAnnotationServiceClient) CreateAnnotationGroup(ctx context.Context, in *annotation.AnnotationIdList, opts ...grpc.CallOption) (*annotation.TaggedAnnotationGroup, error)
- func (_m *TaggedAnnotationServiceClient) DeleteAnnotation(ctx context.Context, in *annotation.DeleteAnnotationRequest, ...) (*empty.Empty, error)
- func (_m *TaggedAnnotationServiceClient) DeleteAnnotationGroup(ctx context.Context, in *annotation.GroupEntryId, opts ...grpc.CallOption) (*empty.Empty, error)
- func (_m *TaggedAnnotationServiceClient) GetAnnotation(ctx context.Context, in *annotation.AnnotationId, opts ...grpc.CallOption) (*annotation.TaggedAnnotation, error)
- func (_m *TaggedAnnotationServiceClient) GetAnnotationGroup(ctx context.Context, in *annotation.GroupEntryId, opts ...grpc.CallOption) (*annotation.TaggedAnnotationGroup, error)
- func (_m *TaggedAnnotationServiceClient) GetAnnotationTag(ctx context.Context, in *annotation.TagRequest, opts ...grpc.CallOption) (*annotation.AnnotationTag, error)
- func (_m *TaggedAnnotationServiceClient) GetEntryAnnotation(ctx context.Context, in *annotation.EntryAnnotationRequest, ...) (*annotation.TaggedAnnotation, error)
- func (_m *TaggedAnnotationServiceClient) ListAnnotationGroups(ctx context.Context, in *annotation.ListGroupParameters, ...) (*annotation.TaggedAnnotationGroupCollection, error)
- func (_m *TaggedAnnotationServiceClient) ListAnnotations(ctx context.Context, in *annotation.ListParameters, opts ...grpc.CallOption) (*annotation.TaggedAnnotationCollection, error)
- func (_m *TaggedAnnotationServiceClient) UpdateAnnotation(ctx context.Context, in *annotation.TaggedAnnotationUpdate, ...) (*annotation.TaggedAnnotation, error)
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Annotation ¶
type Annotation struct {
Client annotation.TaggedAnnotationServiceClient
}
func (*Annotation) GetBasicStrainInfo ¶
func (an *Annotation) GetBasicStrainInfo(strains []*stock.Strain) ([][]string, error)
func (*Annotation) GetPlasmidInv ¶
func (an *Annotation) GetPlasmidInv(plasmids []*stock.Plasmid) ([][]string, error)
func (*Annotation) GetStrainInfo ¶
func (an *Annotation) GetStrainInfo(strains []*stock.Strain) ([][]string, error)
func (*Annotation) GetStrainInv ¶
func (an *Annotation) GetStrainInv(strains []*stock.Strain) ([][]string, error)
type GraphqlAuthor ¶
type GraphqlAuthor struct { FirstName string `graphql:"first_name"` LastName string `graphql:"last_name"` Initials string Rank string }
func (*GraphqlAuthor) FullName ¶
func (agl *GraphqlAuthor) FullName() string
type PubQuery ¶
type PubQuery struct { Publication struct { Id string PubDate time.Time `graphql:"pub_date"` Doi string Authors []*GraphqlAuthor } `graphql:"publication(id: $id)"` }
type Publication ¶
type Publication struct {
// contains filtered or unexported fields
}
func NewPublication ¶
func NewPublication(base string) *Publication
func (*Publication) ParsedInfo ¶
func (p *Publication) ParsedInfo(id string) (*PubInfo, error)
func (*Publication) ParsedInfoFromGraphql ¶
func (p *Publication) ParsedInfoFromGraphql(id string) (*PubInfo, error)
type Sources ¶
type Sources struct { AnnoSource *Annotation StockSource *Stock UserSource *User PubSource *Publication }
func GrpcSources ¶
func GrpcSources(mc map[string]*grpc.ClientConn) *Sources
type Stock ¶
type Stock struct {
Client stock.StockServiceClient
}
func (*Stock) GetBasicPlasmidInfo ¶
type StockServiceClient ¶
StockServiceClient is an autogenerated mock type for the StockServiceClient type
func (*StockServiceClient) CreatePlasmid ¶
func (_m *StockServiceClient) CreatePlasmid(ctx context.Context, in *stock.NewPlasmid, opts ...grpc.CallOption) (*stock.Plasmid, error)
CreatePlasmid provides a mock function with given fields: ctx, in, opts
func (*StockServiceClient) CreateStrain ¶
func (_m *StockServiceClient) CreateStrain(ctx context.Context, in *stock.NewStrain, opts ...grpc.CallOption) (*stock.Strain, error)
CreateStrain provides a mock function with given fields: ctx, in, opts
func (*StockServiceClient) GetPlasmid ¶
func (_m *StockServiceClient) GetPlasmid(ctx context.Context, in *stock.StockId, opts ...grpc.CallOption) (*stock.Plasmid, error)
GetPlasmid provides a mock function with given fields: ctx, in, opts
func (*StockServiceClient) GetStrain ¶
func (_m *StockServiceClient) GetStrain(ctx context.Context, in *stock.StockId, opts ...grpc.CallOption) (*stock.Strain, error)
GetStrain provides a mock function with given fields: ctx, in, opts
func (*StockServiceClient) ListPlasmids ¶
func (_m *StockServiceClient) ListPlasmids(ctx context.Context, in *stock.StockParameters, opts ...grpc.CallOption) (*stock.PlasmidCollection, error)
ListPlasmids provides a mock function with given fields: ctx, in, opts
func (*StockServiceClient) ListStrains ¶
func (_m *StockServiceClient) ListStrains(ctx context.Context, in *stock.StockParameters, opts ...grpc.CallOption) (*stock.StrainCollection, error)
ListStrains provides a mock function with given fields: ctx, in, opts
func (*StockServiceClient) LoadPlasmid ¶
func (_m *StockServiceClient) LoadPlasmid(ctx context.Context, in *stock.ExistingPlasmid, opts ...grpc.CallOption) (*stock.Plasmid, error)
LoadPlasmid provides a mock function with given fields: ctx, in, opts
func (*StockServiceClient) LoadStrain ¶
func (_m *StockServiceClient) LoadStrain(ctx context.Context, in *stock.ExistingStrain, opts ...grpc.CallOption) (*stock.Strain, error)
LoadStrain provides a mock function with given fields: ctx, in, opts
func (*StockServiceClient) RemoveStock ¶
func (_m *StockServiceClient) RemoveStock(ctx context.Context, in *stock.StockId, opts ...grpc.CallOption) (*empty.Empty, error)
RemoveStock provides a mock function with given fields: ctx, in, opts
func (*StockServiceClient) UpdatePlasmid ¶
func (_m *StockServiceClient) UpdatePlasmid(ctx context.Context, in *stock.PlasmidUpdate, opts ...grpc.CallOption) (*stock.Plasmid, error)
UpdatePlasmid provides a mock function with given fields: ctx, in, opts
func (*StockServiceClient) UpdateStrain ¶
func (_m *StockServiceClient) UpdateStrain(ctx context.Context, in *stock.StrainUpdate, opts ...grpc.CallOption) (*stock.Strain, error)
UpdateStrain provides a mock function with given fields: ctx, in, opts
type TaggedAnnotationServiceClient ¶
TaggedAnnotationServiceClient is an autogenerated mock type for the TaggedAnnotationServiceClient type
func (*TaggedAnnotationServiceClient) AddToAnnotationGroup ¶
func (_m *TaggedAnnotationServiceClient) AddToAnnotationGroup(ctx context.Context, in *annotation.AnnotationGroupId, opts ...grpc.CallOption) (*annotation.TaggedAnnotationGroup, error)
AddToAnnotationGroup provides a mock function with given fields: ctx, in, opts
func (*TaggedAnnotationServiceClient) CreateAnnotation ¶
func (_m *TaggedAnnotationServiceClient) CreateAnnotation(ctx context.Context, in *annotation.NewTaggedAnnotation, opts ...grpc.CallOption) (*annotation.TaggedAnnotation, error)
CreateAnnotation provides a mock function with given fields: ctx, in, opts
func (*TaggedAnnotationServiceClient) CreateAnnotationGroup ¶
func (_m *TaggedAnnotationServiceClient) CreateAnnotationGroup(ctx context.Context, in *annotation.AnnotationIdList, opts ...grpc.CallOption) (*annotation.TaggedAnnotationGroup, error)
CreateAnnotationGroup provides a mock function with given fields: ctx, in, opts
func (*TaggedAnnotationServiceClient) DeleteAnnotation ¶
func (_m *TaggedAnnotationServiceClient) DeleteAnnotation(ctx context.Context, in *annotation.DeleteAnnotationRequest, opts ...grpc.CallOption) (*empty.Empty, error)
DeleteAnnotation provides a mock function with given fields: ctx, in, opts
func (*TaggedAnnotationServiceClient) DeleteAnnotationGroup ¶
func (_m *TaggedAnnotationServiceClient) DeleteAnnotationGroup(ctx context.Context, in *annotation.GroupEntryId, opts ...grpc.CallOption) (*empty.Empty, error)
DeleteAnnotationGroup provides a mock function with given fields: ctx, in, opts
func (*TaggedAnnotationServiceClient) GetAnnotation ¶
func (_m *TaggedAnnotationServiceClient) GetAnnotation(ctx context.Context, in *annotation.AnnotationId, opts ...grpc.CallOption) (*annotation.TaggedAnnotation, error)
GetAnnotation provides a mock function with given fields: ctx, in, opts
func (*TaggedAnnotationServiceClient) GetAnnotationGroup ¶
func (_m *TaggedAnnotationServiceClient) GetAnnotationGroup(ctx context.Context, in *annotation.GroupEntryId, opts ...grpc.CallOption) (*annotation.TaggedAnnotationGroup, error)
GetAnnotationGroup provides a mock function with given fields: ctx, in, opts
func (*TaggedAnnotationServiceClient) GetAnnotationTag ¶
func (_m *TaggedAnnotationServiceClient) GetAnnotationTag(ctx context.Context, in *annotation.TagRequest, opts ...grpc.CallOption) (*annotation.AnnotationTag, error)
GetAnnotationTag provides a mock function with given fields: ctx, in, opts
func (*TaggedAnnotationServiceClient) GetEntryAnnotation ¶
func (_m *TaggedAnnotationServiceClient) GetEntryAnnotation(ctx context.Context, in *annotation.EntryAnnotationRequest, opts ...grpc.CallOption) (*annotation.TaggedAnnotation, error)
GetEntryAnnotation provides a mock function with given fields: ctx, in, opts
func (*TaggedAnnotationServiceClient) ListAnnotationGroups ¶
func (_m *TaggedAnnotationServiceClient) ListAnnotationGroups(ctx context.Context, in *annotation.ListGroupParameters, opts ...grpc.CallOption) (*annotation.TaggedAnnotationGroupCollection, error)
ListAnnotationGroups provides a mock function with given fields: ctx, in, opts
func (*TaggedAnnotationServiceClient) ListAnnotations ¶
func (_m *TaggedAnnotationServiceClient) ListAnnotations(ctx context.Context, in *annotation.ListParameters, opts ...grpc.CallOption) (*annotation.TaggedAnnotationCollection, error)
ListAnnotations provides a mock function with given fields: ctx, in, opts
func (*TaggedAnnotationServiceClient) UpdateAnnotation ¶
func (_m *TaggedAnnotationServiceClient) UpdateAnnotation(ctx context.Context, in *annotation.TaggedAnnotationUpdate, opts ...grpc.CallOption) (*annotation.TaggedAnnotation, error)
UpdateAnnotation provides a mock function with given fields: ctx, in, opts