Documentation ¶
Index ¶
Constants ¶
View Source
const ( //DefaultServerAddress amplifier address + port default DefaultServerAddress = "127.0.0.1:8080" //DefaultAdminServerAddress adm-server address + port default DefaultAdminServerAddress = "127.0.0.1:31315" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AMP ¶
type AMP struct { // Config contains all the configuration settings that were loaded Configuration *Configuration // Conn is the gRPC connection to amplifier Conn *grpc.ClientConn // Log also implements the grpclog.Logger interface Log Logger }
AMP holds the state for the current environment
func NewAMP ¶
func NewAMP(c *Configuration, l Logger) *AMP
NewAMP creates an AMP singleton instance (will only be configured with the first call)
func (*AMP) GetAuthorizedContext ¶
GetAuthorizedContext returns an authorized context
func (*AMP) GithubOauth ¶
GithubOauth does an rpc call to login via github
Click to show internal directories.
Click to hide internal directories.