Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAmizoneServiceServer ¶
func NewAmizoneServiceServer() v1.AmizoneServiceServer
Types ¶
type ApiServer ¶
type ApiServer struct {
// contains filtered or unexported fields
}
ApiServer implements an HTTP + gRPC API interface for the go-amizone SDK.
func (*ApiServer) Init ¶
func (s *ApiServer) Init()
Init initialises the server. It is usually called internally by ListenAndServe or ServeHTTP.
func (*ApiServer) ListenAndServe ¶
ListenAndServe starts the server on Config.BindAddr and blocks until it is stopped. The error returned is consistent with the error returned by http.Server.ListenAndServe.
type ContextKey ¶
type ContextKey string
const ContextAmizoneClientKey ContextKey = "amizone_client"
Click to show internal directories.
Click to hide internal directories.