cfg

package
v1.7.75 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Cfg_GetWebAgentConfig_FullMethodName = "/api.v1alpha1.cfg.Cfg/GetWebAgentConfig"
)

Variables

View Source
var Cfg_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.v1alpha1.cfg.Cfg",
	HandlerType: (*CfgServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetWebAgentConfig",
			Handler:    _Cfg_GetWebAgentConfig_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api/v1alpha1/cfg/service.proto",
}

Cfg_ServiceDesc is the grpc.ServiceDesc for Cfg service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_api_v1alpha1_cfg_service_proto protoreflect.FileDescriptor

Functions

func RegisterCfgServer

func RegisterCfgServer(s grpc.ServiceRegistrar, srv CfgServer)

Types

type CfgClient

type CfgClient interface {
	// Get the configuration for a given web agent.
	GetWebAgentConfig(ctx context.Context, in *GetWebAgentConfigReq, opts ...grpc.CallOption) (*WebAgent, error)
}

CfgClient is the client API for Cfg service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewCfgClient

func NewCfgClient(cc grpc.ClientConnInterface) CfgClient

type CfgServer

type CfgServer interface {
	// Get the configuration for a given web agent.
	GetWebAgentConfig(context.Context, *GetWebAgentConfigReq) (*WebAgent, error)
	// contains filtered or unexported methods
}

CfgServer is the server API for Cfg service. All implementations must embed UnimplementedCfgServer for forward compatibility

type GetWebAgentConfigReq

type GetWebAgentConfigReq struct {

	// the regional identifier for the web agent.
	RegionId string `protobuf:"bytes,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"`
	// contains filtered or unexported fields
}

Request to retrieve the WebAgent configuration.

func (*GetWebAgentConfigReq) Descriptor deprecated

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

Deprecated: Use GetWebAgentConfigReq.ProtoReflect.Descriptor instead.

func (*GetWebAgentConfigReq) GetRegionId

func (x *GetWebAgentConfigReq) GetRegionId() string

func (*GetWebAgentConfigReq) ProtoMessage

func (*GetWebAgentConfigReq) ProtoMessage()

func (*GetWebAgentConfigReq) ProtoReflect

func (x *GetWebAgentConfigReq) ProtoReflect() protoreflect.Message

func (*GetWebAgentConfigReq) Reset

func (x *GetWebAgentConfigReq) Reset()

func (*GetWebAgentConfigReq) String

func (x *GetWebAgentConfigReq) String() string

type UnimplementedCfgServer

type UnimplementedCfgServer struct {
}

UnimplementedCfgServer must be embedded to have forward compatible implementations.

func (UnimplementedCfgServer) GetWebAgentConfig

type UnsafeCfgServer

type UnsafeCfgServer interface {
	// contains filtered or unexported methods
}

UnsafeCfgServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CfgServer will result in compilation errors.

type WebAgent

type WebAgent struct {
	OpenSips          *WebAgent_OpenSips       `protobuf:"bytes,1,opt,name=open_sips,json=openSips,proto3" json:"open_sips,omitempty"`
	EnginePriority    *WebAgent_EnginePriority `protobuf:"bytes,2,opt,name=engine_priority,json=enginePriority,proto3" json:"engine_priority,omitempty"`
	LogLevel          int64                    `protobuf:"varint,3,opt,name=log_level,json=logLevel,proto3" json:"log_level,omitempty"`
	UseStun           int64                    `protobuf:"varint,4,opt,name=use_stun,json=useStun,proto3" json:"use_stun,omitempty"`
	UseFastStun       int64                    `protobuf:"varint,5,opt,name=use_fast_stun,json=useFastStun,proto3" json:"use_fast_stun,omitempty"`
	UseFastIce        int64                    `protobuf:"varint,6,opt,name=use_fast_ice,json=useFastIce,proto3" json:"use_fast_ice,omitempty"`
	IceTimeout        int64                    `protobuf:"varint,7,opt,name=ice_timeout,json=iceTimeout,proto3" json:"ice_timeout,omitempty"`
	SetFinalCodec     int64                    `protobuf:"varint,8,opt,name=set_final_codec,json=setFinalCodec,proto3" json:"set_final_codec,omitempty"`
	UseRport          int64                    `protobuf:"varint,9,opt,name=use_rport,json=useRport,proto3" json:"use_rport,omitempty"`
	Server            *WebAgent_Server         `protobuf:"bytes,10,opt,name=server,proto3" json:"server,omitempty"`
	BaseUrl           string                   `protobuf:"bytes,11,opt,name=base_url,json=baseUrl,proto3" json:"base_url,omitempty"`
	StunServerAddress string                   `protobuf:"bytes,12,opt,name=stun_server_address,json=stunServerAddress,proto3" json:"stun_server_address,omitempty"`
	// contains filtered or unexported fields
}

The configuration for a web agent.

func (*WebAgent) Descriptor deprecated

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

Deprecated: Use WebAgent.ProtoReflect.Descriptor instead.

func (*WebAgent) GetBaseUrl

func (x *WebAgent) GetBaseUrl() string

func (*WebAgent) GetEnginePriority

func (x *WebAgent) GetEnginePriority() *WebAgent_EnginePriority

func (*WebAgent) GetIceTimeout

func (x *WebAgent) GetIceTimeout() int64

func (*WebAgent) GetLogLevel

func (x *WebAgent) GetLogLevel() int64

func (*WebAgent) GetOpenSips

func (x *WebAgent) GetOpenSips() *WebAgent_OpenSips

func (*WebAgent) GetServer

func (x *WebAgent) GetServer() *WebAgent_Server

func (*WebAgent) GetSetFinalCodec

func (x *WebAgent) GetSetFinalCodec() int64

func (*WebAgent) GetStunServerAddress

func (x *WebAgent) GetStunServerAddress() string

func (*WebAgent) GetUseFastIce

func (x *WebAgent) GetUseFastIce() int64

func (*WebAgent) GetUseFastStun

func (x *WebAgent) GetUseFastStun() int64

func (*WebAgent) GetUseRport

func (x *WebAgent) GetUseRport() int64

func (*WebAgent) GetUseStun

func (x *WebAgent) GetUseStun() int64

func (*WebAgent) ProtoMessage

func (*WebAgent) ProtoMessage()

func (*WebAgent) ProtoReflect

func (x *WebAgent) ProtoReflect() protoreflect.Message

func (*WebAgent) Reset

func (x *WebAgent) Reset()

func (*WebAgent) String

func (x *WebAgent) String() string

type WebAgent_EnginePriority

type WebAgent_EnginePriority struct {
	Java      int64 `protobuf:"varint,1,opt,name=java,proto3" json:"java,omitempty"`
	Webrtc    int64 `protobuf:"varint,2,opt,name=webrtc,proto3" json:"webrtc,omitempty"`
	Ns        int64 `protobuf:"varint,3,opt,name=ns,proto3" json:"ns,omitempty"`
	Flash     int64 `protobuf:"varint,4,opt,name=flash,proto3" json:"flash,omitempty"`
	App       int64 `protobuf:"varint,5,opt,name=app,proto3" json:"app,omitempty"`
	P2P       int64 `protobuf:"varint,6,opt,name=p2p,proto3" json:"p2p,omitempty"`
	AccessNum int64 `protobuf:"varint,7,opt,name=access_num,json=accessNum,proto3" json:"access_num,omitempty"`
	Native    int64 `protobuf:"varint,8,opt,name=native,proto3" json:"native,omitempty"`
	// contains filtered or unexported fields
}

func (*WebAgent_EnginePriority) Descriptor deprecated

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

Deprecated: Use WebAgent_EnginePriority.ProtoReflect.Descriptor instead.

func (*WebAgent_EnginePriority) GetAccessNum

func (x *WebAgent_EnginePriority) GetAccessNum() int64

func (*WebAgent_EnginePriority) GetApp

func (x *WebAgent_EnginePriority) GetApp() int64

func (*WebAgent_EnginePriority) GetFlash

func (x *WebAgent_EnginePriority) GetFlash() int64

func (*WebAgent_EnginePriority) GetJava

func (x *WebAgent_EnginePriority) GetJava() int64

func (*WebAgent_EnginePriority) GetNative

func (x *WebAgent_EnginePriority) GetNative() int64

func (*WebAgent_EnginePriority) GetNs

func (x *WebAgent_EnginePriority) GetNs() int64

func (*WebAgent_EnginePriority) GetP2P

func (x *WebAgent_EnginePriority) GetP2P() int64

func (*WebAgent_EnginePriority) GetWebrtc

func (x *WebAgent_EnginePriority) GetWebrtc() int64

func (*WebAgent_EnginePriority) ProtoMessage

func (*WebAgent_EnginePriority) ProtoMessage()

func (*WebAgent_EnginePriority) ProtoReflect

func (x *WebAgent_EnginePriority) ProtoReflect() protoreflect.Message

func (*WebAgent_EnginePriority) Reset

func (x *WebAgent_EnginePriority) Reset()

func (*WebAgent_EnginePriority) String

func (x *WebAgent_EnginePriority) String() string

type WebAgent_OpenSips

type WebAgent_OpenSips struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

func (*WebAgent_OpenSips) Descriptor deprecated

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

Deprecated: Use WebAgent_OpenSips.ProtoReflect.Descriptor instead.

func (*WebAgent_OpenSips) GetAddress

func (x *WebAgent_OpenSips) GetAddress() string

func (*WebAgent_OpenSips) ProtoMessage

func (*WebAgent_OpenSips) ProtoMessage()

func (*WebAgent_OpenSips) ProtoReflect

func (x *WebAgent_OpenSips) ProtoReflect() protoreflect.Message

func (*WebAgent_OpenSips) Reset

func (x *WebAgent_OpenSips) Reset()

func (*WebAgent_OpenSips) String

func (x *WebAgent_OpenSips) String() string

type WebAgent_Server

type WebAgent_Server struct {
	Sip    string `protobuf:"bytes,1,opt,name=sip,proto3" json:"sip,omitempty"`
	Webrtc string `protobuf:"bytes,2,opt,name=webrtc,proto3" json:"webrtc,omitempty"`
	// contains filtered or unexported fields
}

func (*WebAgent_Server) Descriptor deprecated

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

Deprecated: Use WebAgent_Server.ProtoReflect.Descriptor instead.

func (*WebAgent_Server) GetSip

func (x *WebAgent_Server) GetSip() string

func (*WebAgent_Server) GetWebrtc

func (x *WebAgent_Server) GetWebrtc() string

func (*WebAgent_Server) ProtoMessage

func (*WebAgent_Server) ProtoMessage()

func (*WebAgent_Server) ProtoReflect

func (x *WebAgent_Server) ProtoReflect() protoreflect.Message

func (*WebAgent_Server) Reset

func (x *WebAgent_Server) Reset()

func (*WebAgent_Server) String

func (x *WebAgent_Server) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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