session

package
v0.0.0-...-bf845eb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 20, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Loop

func Loop(options Options)

Loop starts a session loop to react to user input, using a default prompt

Types

type Options

type Options struct {
	Endpoint string
	Headers  []string
}

Options represents a session's initializer options

type Session

type Session struct {
	// contains filtered or unexported fields
}

Session represents a shell session

func NewSession

func NewSession(options Options) (*Session, error)

NewSession creates a new session

func (Session) Client

func (s Session) Client() graphql.Querier

Client implements types.Session

func (Session) CurrentQuery

func (s Session) CurrentQuery() *querybuilder.Query

CurrentQuery implements types.Session

func (Session) Endpoint

func (s Session) Endpoint() string

Endpoint implements types.Session

func (Session) Headers

func (s Session) Headers() []string

Headers implements types.Session

func (Session) RootQuery

func (s Session) RootQuery() *querybuilder.Query

RootQuery implements types.Session

func (*Session) SetCurrentQuery

func (s *Session) SetCurrentQuery(query *querybuilder.Query)

SetCurrentQuery implements types.Session

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL