service

package
v0.34.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package service is a generated protocol buffer package.

It is generated from these files:

pkg/protobuf/service/service.proto

It has these top-level messages:

EnableSSLRequest
SetStaticIpRequest
Empty
InfoRequest
InfoResponse
WhitelistSourceRangesRequest

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterServiceServer

func RegisterServiceServer(s *grpc.Server, srv ServiceServer)

Types

type Empty

type Empty struct {
}

func (*Empty) Descriptor

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

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) Reset

func (m *Empty) Reset()

func (*Empty) String

func (m *Empty) String() string

type EnableSSLRequest

type EnableSSLRequest struct {
	AppName string `protobuf:"bytes,1,opt,name=app_name,json=appName" json:"app_name,omitempty"`
	Cert    string `protobuf:"bytes,2,opt,name=cert" json:"cert,omitempty"`
	Only    bool   `protobuf:"varint,3,opt,name=only" json:"only,omitempty"`
}

func (*EnableSSLRequest) Descriptor

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

func (*EnableSSLRequest) GetAppName

func (m *EnableSSLRequest) GetAppName() string

func (*EnableSSLRequest) GetCert

func (m *EnableSSLRequest) GetCert() string

func (*EnableSSLRequest) GetOnly

func (m *EnableSSLRequest) GetOnly() bool

func (*EnableSSLRequest) ProtoMessage

func (*EnableSSLRequest) ProtoMessage()

func (*EnableSSLRequest) Reset

func (m *EnableSSLRequest) Reset()

func (*EnableSSLRequest) String

func (m *EnableSSLRequest) String() string

type InfoRequest

type InfoRequest struct {
	AppName string `protobuf:"bytes,1,opt,name=app_name,json=appName" json:"app_name,omitempty"`
}

func (*InfoRequest) Descriptor

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

func (*InfoRequest) GetAppName

func (m *InfoRequest) GetAppName() string

func (*InfoRequest) ProtoMessage

func (*InfoRequest) ProtoMessage()

func (*InfoRequest) Reset

func (m *InfoRequest) Reset()

func (*InfoRequest) String

func (m *InfoRequest) String() string

type InfoResponse

type InfoResponse struct {
	ServicePorts []*InfoResponse_ServicePort `protobuf:"bytes,1,rep,name=service_ports,json=servicePorts" json:"service_ports,omitempty"`
	Ssl          *InfoResponse_SSL           `protobuf:"bytes,2,opt,name=ssl" json:"ssl,omitempty"`
	SourceRanges []string                    `protobuf:"bytes,3,rep,name=source_ranges,json=sourceRanges" json:"source_ranges,omitempty"`
}

func (*InfoResponse) Descriptor

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

func (*InfoResponse) GetServicePorts

func (m *InfoResponse) GetServicePorts() []*InfoResponse_ServicePort

func (*InfoResponse) GetSourceRanges added in v0.24.0

func (m *InfoResponse) GetSourceRanges() []string

func (*InfoResponse) GetSsl

func (m *InfoResponse) GetSsl() *InfoResponse_SSL

func (*InfoResponse) ProtoMessage

func (*InfoResponse) ProtoMessage()

func (*InfoResponse) Reset

func (m *InfoResponse) Reset()

func (*InfoResponse) String

func (m *InfoResponse) String() string

type InfoResponse_SSL

type InfoResponse_SSL struct {
	ServicePort *InfoResponse_ServicePort `protobuf:"bytes,1,opt,name=service_port,json=servicePort" json:"service_port,omitempty"`
	Cert        string                    `protobuf:"bytes,2,opt,name=cert" json:"cert,omitempty"`
}

func (*InfoResponse_SSL) Descriptor

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

func (*InfoResponse_SSL) GetCert

func (m *InfoResponse_SSL) GetCert() string

func (*InfoResponse_SSL) GetServicePort

func (m *InfoResponse_SSL) GetServicePort() *InfoResponse_ServicePort

func (*InfoResponse_SSL) ProtoMessage

func (*InfoResponse_SSL) ProtoMessage()

func (*InfoResponse_SSL) Reset

func (m *InfoResponse_SSL) Reset()

func (*InfoResponse_SSL) String

func (m *InfoResponse_SSL) String() string

type InfoResponse_ServicePort

type InfoResponse_ServicePort struct {
	Port int32 `protobuf:"varint,1,opt,name=port" json:"port,omitempty"`
}

func (*InfoResponse_ServicePort) Descriptor

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

func (*InfoResponse_ServicePort) GetPort

func (m *InfoResponse_ServicePort) GetPort() int32

func (*InfoResponse_ServicePort) ProtoMessage

func (*InfoResponse_ServicePort) ProtoMessage()

func (*InfoResponse_ServicePort) Reset

func (m *InfoResponse_ServicePort) Reset()

func (*InfoResponse_ServicePort) String

func (m *InfoResponse_ServicePort) String() string

type ServiceClient

type ServiceClient interface {
	EnableSSL(ctx context.Context, in *EnableSSLRequest, opts ...grpc.CallOption) (*Empty, error)
	SetStaticIp(ctx context.Context, in *SetStaticIpRequest, opts ...grpc.CallOption) (*Empty, error)
	Info(ctx context.Context, in *InfoRequest, opts ...grpc.CallOption) (*InfoResponse, error)
	WhitelistSourceRanges(ctx context.Context, in *WhitelistSourceRangesRequest, opts ...grpc.CallOption) (*Empty, error)
}

func NewServiceClient

func NewServiceClient(cc *grpc.ClientConn) ServiceClient

type ServiceServer

type ServiceServer interface {
	EnableSSL(context.Context, *EnableSSLRequest) (*Empty, error)
	SetStaticIp(context.Context, *SetStaticIpRequest) (*Empty, error)
	Info(context.Context, *InfoRequest) (*InfoResponse, error)
	WhitelistSourceRanges(context.Context, *WhitelistSourceRangesRequest) (*Empty, error)
}

type SetStaticIpRequest added in v0.30.0

type SetStaticIpRequest struct {
	AppName     string `protobuf:"bytes,1,opt,name=app_name,json=appName" json:"app_name,omitempty"`
	AddressName string `protobuf:"bytes,2,opt,name=address_name,json=addressName" json:"address_name,omitempty"`
}

func (*SetStaticIpRequest) Descriptor added in v0.30.0

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

func (*SetStaticIpRequest) GetAddressName added in v0.30.0

func (m *SetStaticIpRequest) GetAddressName() string

func (*SetStaticIpRequest) GetAppName added in v0.30.0

func (m *SetStaticIpRequest) GetAppName() string

func (*SetStaticIpRequest) ProtoMessage added in v0.30.0

func (*SetStaticIpRequest) ProtoMessage()

func (*SetStaticIpRequest) Reset added in v0.30.0

func (m *SetStaticIpRequest) Reset()

func (*SetStaticIpRequest) String added in v0.30.0

func (m *SetStaticIpRequest) String() string

type WhitelistSourceRangesRequest added in v0.24.0

type WhitelistSourceRangesRequest struct {
	AppName      string   `protobuf:"bytes,1,opt,name=app_name,json=appName" json:"app_name,omitempty"`
	SourceRanges []string `protobuf:"bytes,2,rep,name=source_ranges,json=sourceRanges" json:"source_ranges,omitempty"`
}

func (*WhitelistSourceRangesRequest) Descriptor added in v0.24.0

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

func (*WhitelistSourceRangesRequest) GetAppName added in v0.24.0

func (m *WhitelistSourceRangesRequest) GetAppName() string

func (*WhitelistSourceRangesRequest) GetSourceRanges added in v0.24.0

func (m *WhitelistSourceRangesRequest) GetSourceRanges() []string

func (*WhitelistSourceRangesRequest) ProtoMessage added in v0.24.0

func (*WhitelistSourceRangesRequest) ProtoMessage()

func (*WhitelistSourceRangesRequest) Reset added in v0.24.0

func (m *WhitelistSourceRangesRequest) Reset()

func (*WhitelistSourceRangesRequest) String added in v0.24.0

Jump to

Keyboard shortcuts

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