Documentation
¶
Index ¶
- type Options
- type Server
- type Session
- func (session *Session) CloseInput() error
- func (session *Session) CloseWith(err error)
- func (session *Session) Init(handler proto.Handler, ctx context.Context, opt SessionOpts)
- func (session *Session) Stage() (running, started bool)
- func (session *Session) Start(r *http.Request, call proto.CallMessage) bool
- func (session *Session) Status() Status
- func (session *Session) Wait(ctx context.Context) (result any, err error)
- func (session *Session) Write(data []byte) (int, error)
- type SessionOpts
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct { // timeout after which new elements are automatically removed Timeout time.Duration // If set to true, don't serve an api under docs DisableSwaggerUI bool // Description for the server in openapi.json OpenAPIServerDescription string // options for the session Session SessionOpts }
Options are the options for a rest server.
func (*Options) SetDefaults ¶
func (opt *Options) SetDefaults()
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
Session holds information about an ongoing process.
func (*Session) CloseInput ¶
CloseInput closes the input of the session.
func (*Session) Stage ¶
Stage returns information about the current stage of the session.
Running indicates if the session is currently running its associated process. Started indicates if the session process was started previously.
type SessionOpts ¶
type SessionOpts struct {
MaxLines int
}
func (*SessionOpts) SetDefaults ¶
func (opt *SessionOpts) SetDefaults()
Click to show internal directories.
Click to hide internal directories.