proxy

package
v0.2.18 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartAPIProxy

func StartAPIProxy(p *Proxy, port int, cert string, key string, caCert string, skipVerify bool) (*grpc.Server, error)

func StartPeeringProxy

func StartPeeringProxy(p *Proxy, port int, certFile string, keyFile string, caFile string, skipVerify bool) (*grpc.Server, error)

Types

type APIProxy

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

func (*APIProxy) AddReplica

func (a *APIProxy) AddReplica(ctx context.Context, req *client.AddReplicaRequest) (*client.Empty, error)

AddReplica calls this method on the exthandler

func (*APIProxy) AddTrigger

func (a *APIProxy) AddTrigger(ctx context.Context, req *client.AddTriggerRequest) (*client.Empty, error)

AddTrigger calls this method on the exthandler

func (*APIProxy) AddUser

func (a *APIProxy) AddUser(ctx context.Context, req *client.AddUserRequest) (*client.Empty, error)

AddUser calls this method on the exthandler

func (*APIProxy) Append

Append calls this method on the exthandler

func (*APIProxy) CreateKeygroup

func (a *APIProxy) CreateKeygroup(ctx context.Context, req *client.CreateKeygroupRequest) (*client.Empty, error)

CreateKeygroup calls this method on the exthandler

func (*APIProxy) Delete

Delete calls this method on the exthandler

func (*APIProxy) DeleteKeygroup

func (a *APIProxy) DeleteKeygroup(ctx context.Context, req *client.DeleteKeygroupRequest) (*client.Empty, error)

DeleteKeygroup calls this method on the exthandler

func (*APIProxy) GetAllReplica

func (a *APIProxy) GetAllReplica(ctx context.Context, req *client.Empty) (*client.GetAllReplicaResponse, error)

GetAllReplica calls this method on the exthandler

func (*APIProxy) GetKeygroupInfo added in v0.2.2

GetKeygroupInfo calls this method on the exthandler

func (*APIProxy) GetKeygroupTriggers

GetKeygroupTriggers calls this method on the exthandler

func (*APIProxy) GetReplica

GetReplica calls this method on the exthandler

func (*APIProxy) Read

Read calls this method on the exthandler

func (*APIProxy) RemoveReplica

func (a *APIProxy) RemoveReplica(ctx context.Context, req *client.RemoveReplicaRequest) (*client.Empty, error)

RemoveReplica calls this method on the exthandler

func (*APIProxy) RemoveTrigger

func (a *APIProxy) RemoveTrigger(ctx context.Context, req *client.RemoveTriggerRequest) (*client.Empty, error)

RemoveTrigger calls this method on the exthandler

func (*APIProxy) RemoveUser

func (a *APIProxy) RemoveUser(ctx context.Context, req *client.RemoveUserRequest) (*client.Empty, error)

RemoveUser calls this method on the exthandler

func (*APIProxy) Scan

Scan calls this method on the exthandler

func (*APIProxy) Update

Update calls this method on the exthandler

type PeeringProxy

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

func (*PeeringProxy) AppendItem

func (p *PeeringProxy) AppendItem(ctx context.Context, req *peering.AppendItemRequest) (*peering.Empty, error)

AppendItem calls HandleAppend on the Inthandler

func (*PeeringProxy) CreateKeygroup

func (p *PeeringProxy) CreateKeygroup(ctx context.Context, req *peering.CreateKeygroupRequest) (*peering.Empty, error)

CreateKeygroup calls this Method on the Inthandler

func (*PeeringProxy) DeleteKeygroup

func (p *PeeringProxy) DeleteKeygroup(ctx context.Context, req *peering.DeleteKeygroupRequest) (*peering.Empty, error)

DeleteKeygroup calls this Method on the Inthandler

func (*PeeringProxy) GetAllItems

GetAllItems has no implementation

func (*PeeringProxy) GetItem

GetItem has no implementation

func (*PeeringProxy) PutItem

PutItem calls HandleUpdate on the Inthandler

type Proxy

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

func NewProxy

func NewProxy(hosts []string) *Proxy

Jump to

Keyboard shortcuts

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