gateway

package
v0.0.0-...-a20b76d Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterGatewayServiceServer

func RegisterGatewayServiceServer(s *grpc.Server, srv GatewayServiceServer)

Types

type GatewayServiceClient

type GatewayServiceClient interface {
	// Calls Signer.go->FetchUrl method.
	GenerateSXG(ctx context.Context, in *SXGRequest, opts ...grpc.CallOption) (*SXGResponse, error)
}

GatewayServiceClient is the client API for GatewayService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewGatewayServiceClient

func NewGatewayServiceClient(cc *grpc.ClientConn) GatewayServiceClient

type GatewayServiceServer

type GatewayServiceServer interface {
	// Calls Signer.go->FetchUrl method.
	GenerateSXG(context.Context, *SXGRequest) (*SXGResponse, error)
}

GatewayServiceServer is the server API for GatewayService service.

type SXGRequest

type SXGRequest struct {
	// URL to fetch from publisher's internal server. ie. PublisherServer.
	FetchUrl string `protobuf:"bytes,1,opt,name=fetch_url,json=fetchUrl,proto3" json:"fetch_url,omitempty"`
	// URL to sign in sxg package.
	SignUrl string `protobuf:"bytes,2,opt,name=sign_url,json=signUrl,proto3" json:"sign_url,omitempty"`
	// ECC private key.
	PrivateKey []byte `protobuf:"bytes,3,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"`
	// X509 certificate which may or may not contain CanSignHTTPExchange
	// extension.
	PublicCert []byte `protobuf:"bytes,4,opt,name=public_cert,json=publicCert,proto3" json:"public_cert,omitempty"`
	// Extra request headers to pass to Packager. singer.go->ServeHTTP.
	PackagerServerRequestHeaders map[string]string `` /* 237-byte string literal not displayed */
	XXX_NoUnkeyedLiteral         struct{}          `json:"-"`
	XXX_unrecognized             []byte            `json:"-"`
	XXX_sizecache                int32             `json:"-"`
}

func (*SXGRequest) Descriptor

func (*SXGRequest) Descriptor() ([]byte, []int)

func (*SXGRequest) GetFetchUrl

func (m *SXGRequest) GetFetchUrl() string

func (*SXGRequest) GetPackagerServerRequestHeaders

func (m *SXGRequest) GetPackagerServerRequestHeaders() map[string]string

func (*SXGRequest) GetPrivateKey

func (m *SXGRequest) GetPrivateKey() []byte

func (*SXGRequest) GetPublicCert

func (m *SXGRequest) GetPublicCert() []byte

func (*SXGRequest) GetSignUrl

func (m *SXGRequest) GetSignUrl() string

func (*SXGRequest) ProtoMessage

func (*SXGRequest) ProtoMessage()

func (*SXGRequest) Reset

func (m *SXGRequest) Reset()

func (*SXGRequest) String

func (m *SXGRequest) String() string

func (*SXGRequest) XXX_DiscardUnknown

func (m *SXGRequest) XXX_DiscardUnknown()

func (*SXGRequest) XXX_Marshal

func (m *SXGRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SXGRequest) XXX_Merge

func (m *SXGRequest) XXX_Merge(src proto.Message)

func (*SXGRequest) XXX_Size

func (m *SXGRequest) XXX_Size() int

func (*SXGRequest) XXX_Unmarshal

func (m *SXGRequest) XXX_Unmarshal(b []byte) error

type SXGResponse

type SXGResponse struct {
	Sxg              []byte `protobuf:"bytes,1,opt,name=sxg,proto3" json:"sxg,omitempty"`
	Error            bool   `protobuf:"varint,2,opt,name=error,proto3" json:"error,omitempty"`
	ErrorDescription string `protobuf:"bytes,3,opt,name=error_description,json=errorDescription,proto3" json:"error_description,omitempty"`
	// application/cert-chain+cbor format certificate response.
	Cbor []byte `protobuf:"bytes,4,opt,name=cbor,proto3" json:"cbor,omitempty"`
	// HTTP headers returned by the packager.
	HttpHeaders          map[string]string `` /* 182-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

func (*SXGResponse) Descriptor

func (*SXGResponse) Descriptor() ([]byte, []int)

func (*SXGResponse) GetCbor

func (m *SXGResponse) GetCbor() []byte

func (*SXGResponse) GetError

func (m *SXGResponse) GetError() bool

func (*SXGResponse) GetErrorDescription

func (m *SXGResponse) GetErrorDescription() string

func (*SXGResponse) GetHttpHeaders

func (m *SXGResponse) GetHttpHeaders() map[string]string

func (*SXGResponse) GetSxg

func (m *SXGResponse) GetSxg() []byte

func (*SXGResponse) ProtoMessage

func (*SXGResponse) ProtoMessage()

func (*SXGResponse) Reset

func (m *SXGResponse) Reset()

func (*SXGResponse) String

func (m *SXGResponse) String() string

func (*SXGResponse) XXX_DiscardUnknown

func (m *SXGResponse) XXX_DiscardUnknown()

func (*SXGResponse) XXX_Marshal

func (m *SXGResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SXGResponse) XXX_Merge

func (m *SXGResponse) XXX_Merge(src proto.Message)

func (*SXGResponse) XXX_Size

func (m *SXGResponse) XXX_Size() int

func (*SXGResponse) XXX_Unmarshal

func (m *SXGResponse) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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