Documentation ¶
Overview ¶
Package api is a partial API client for the Orthanc DICOM server REST API.
Index ¶
- Variables
- type Api
- func (a *Api) Changes(ctx context.Context, since, limit int) (result ChangesResult, err error)
- func (a *Api) GetInstance(ctx context.Context, id string) (result GetInstanceResponse, err error)
- func (a *Api) GetInstancePreview(ctx context.Context, id string) (r io.ReadCloser, len int64, err error)
- func (a *Api) GetInstanceTags(ctx context.Context, id string) (result GetInstanceTagsResponse, err error)
- func (a *Api) GetPatient(ctx context.Context, id string) (result GetPatientResponse, err error)
- func (a *Api) GetSeries(ctx context.Context, id string) (result GetSeriesResponse, err error)
- func (a *Api) GetStudy(ctx context.Context, id string) (result GetStudyResponse, err error)
- func (a *Api) InstanceFile(ctx context.Context, id string) (r io.ReadCloser, len int64, err error)
- func (a *Api) Instances(ctx context.Context, since int, limit int) (result []string, err error)
- func (a *Api) LastChange(ctx context.Context) (result ChangeResult, last int, err error)
- func (a *Api) PatientDetailsSince(ctx context.Context, since, limit int) (result []GetPatientResponse, err error)
- func (a *Api) PostInstance(ctx context.Context, data io.Reader, len int64) (result PostInstanceResponse, err error)
- type ChangeResult
- type ChangeWatch
- type ChangesResult
- type GetInstanceResponse
- type GetInstanceTagsResponse
- type GetPatientResponse
- type GetSeriesResponse
- type GetStudyResponse
- type InstanceTag
- type Logger
- type PostInstanceResponse
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultPollInterval = 60 * time.Second
Functions ¶
This section is empty.
Types ¶
type Api ¶
func (*Api) GetInstance ¶ added in v0.0.4
func (*Api) GetInstancePreview ¶ added in v0.0.4
func (*Api) GetInstanceTags ¶ added in v0.0.4
func (*Api) GetPatient ¶ added in v0.0.4
func (*Api) InstanceFile ¶
func (*Api) LastChange ¶
func (*Api) PatientDetailsSince ¶
func (*Api) PostInstance ¶
type ChangeResult ¶
type ChangeWatch ¶
func (ChangeWatch) Run ¶
func (cw ChangeWatch) Run(ctx context.Context, api *Api, f func(ChangeResult)) error
Run iterates through all the changes from StartIndex to StopIndex (or forever, when StopIndex is < 0) for all Change entries that are encountered the callback function is called.
when StopIndex is -1, it will wait DefaultChangeWatchSleepTime (60 seconds) before trying again.
type ChangesResult ¶
type ChangesResult struct { Changes []ChangeResult Done bool Last int }
type GetInstanceResponse ¶ added in v0.0.4
type GetInstanceTagsResponse ¶ added in v0.0.4
type GetInstanceTagsResponse map[string]InstanceTag
type GetPatientResponse ¶ added in v0.0.4
type GetSeriesResponse ¶ added in v0.0.4
type GetStudyResponse ¶ added in v0.0.4
type InstanceTag ¶ added in v0.0.4
type PostInstanceResponse ¶
Click to show internal directories.
Click to hide internal directories.