conf

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2022 License: Apache-2.0 Imports: 12 Imported by: 37

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SameSiteMode_name = map[int32]string{
		0: "SameSiteDefault",
		1: "SameSiteLax",
		2: "SameSiteStrict",
		3: "SameSiteNone",
	}
	SameSiteMode_value = map[string]int32{
		"SameSiteDefault": 0,
		"SameSiteLax":     1,
		"SameSiteStrict":  2,
		"SameSiteNone":    3,
	}
)

Enum value maps for SameSiteMode.

View Source
var (
	Email_SMTP_Encryption_name = map[int32]string{
		0: "NONE",
		1: "SSL",
		2: "STARTTLS",
	}
	Email_SMTP_Encryption_value = map[string]int32{
		"NONE":     0,
		"SSL":      1,
		"STARTTLS": 2,
	}
)

Enum value maps for Email_SMTP_Encryption.

View Source
var File_conf_conf_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AppConfig

type AppConfig struct {
	TenantKey       *wrapperspb.StringValue `protobuf:"bytes,1,opt,name=tenant_key,json=tenantKey,proto3,oneof" json:"tenant_key,omitempty"`
	DomainFormat    *wrapperspb.StringValue `protobuf:"bytes,2,opt,name=domain_format,json=domainFormat,proto3,oneof" json:"domain_format,omitempty"`
	HostDisplayName string                  `protobuf:"bytes,3,opt,name=host_display_name,json=hostDisplayName,proto3" json:"host_display_name,omitempty"`
	// contains filtered or unexported fields
}

func (*AppConfig) Descriptor deprecated

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

Deprecated: Use AppConfig.ProtoReflect.Descriptor instead.

func (*AppConfig) GetDomainFormat

func (x *AppConfig) GetDomainFormat() *wrapperspb.StringValue

func (*AppConfig) GetHostDisplayName

func (x *AppConfig) GetHostDisplayName() string
func (x *AppConfig) GetHostLogo() string

func (*AppConfig) GetTenantKey

func (x *AppConfig) GetTenantKey() *wrapperspb.StringValue

func (*AppConfig) ProtoMessage

func (*AppConfig) ProtoMessage()

func (*AppConfig) ProtoReflect

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

func (*AppConfig) Reset

func (x *AppConfig) Reset()

func (*AppConfig) String

func (x *AppConfig) String() string

type Client

type Client struct {
	ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
	// server clients use secret
	ClientSecret string               `protobuf:"bytes,2,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"`
	Timeout      *durationpb.Duration `protobuf:"bytes,3,opt,name=timeout,proto3" json:"timeout,omitempty"`
	// contains filtered or unexported fields
}

func (*Client) Descriptor deprecated

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

Deprecated: Use Client.ProtoReflect.Descriptor instead.

func (*Client) GetClientId

func (x *Client) GetClientId() string

func (*Client) GetClientSecret

func (x *Client) GetClientSecret() string

func (*Client) GetTimeout

func (x *Client) GetTimeout() *durationpb.Duration

func (*Client) ProtoMessage

func (*Client) ProtoMessage()

func (*Client) ProtoReflect

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

func (*Client) Reset

func (x *Client) Reset()

func (*Client) String

func (x *Client) String() string
type Cookie struct {
	Name     *wrapperspb.StringValue `protobuf:"bytes,10,opt,name=name,proto3,oneof" json:"name,omitempty"`
	MaxAge   *wrapperspb.Int32Value  `protobuf:"bytes,11,opt,name=max_age,json=maxAge,proto3,oneof" json:"max_age,omitempty"`
	Domain   *wrapperspb.StringValue `protobuf:"bytes,12,opt,name=domain,proto3,oneof" json:"domain,omitempty"`
	Path     *wrapperspb.StringValue `protobuf:"bytes,13,opt,name=path,proto3,oneof" json:"path,omitempty"`
	HttpOnly *wrapperspb.BoolValue   `protobuf:"bytes,14,opt,name=http_only,json=httpOnly,proto3,oneof" json:"http_only,omitempty"`
	Secure   *wrapperspb.BoolValue   `protobuf:"bytes,15,opt,name=secure,proto3,oneof" json:"secure,omitempty"`
	SameSite SameSiteMode            `protobuf:"varint,16,opt,name=same_site,json=sameSite,proto3,enum=conf.SameSiteMode" json:"same_site,omitempty"`
	// contains filtered or unexported fields
}

func (*Cookie) Descriptor deprecated

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

Deprecated: Use Cookie.ProtoReflect.Descriptor instead.

func (*Cookie) GetDomain

func (x *Cookie) GetDomain() *wrapperspb.StringValue

func (*Cookie) GetHttpOnly

func (x *Cookie) GetHttpOnly() *wrapperspb.BoolValue

func (*Cookie) GetMaxAge

func (x *Cookie) GetMaxAge() *wrapperspb.Int32Value

func (*Cookie) GetName

func (x *Cookie) GetName() *wrapperspb.StringValue

func (*Cookie) GetPath

func (x *Cookie) GetPath() *wrapperspb.StringValue

func (*Cookie) GetSameSite

func (x *Cookie) GetSameSite() SameSiteMode

func (*Cookie) GetSecure

func (x *Cookie) GetSecure() *wrapperspb.BoolValue

func (*Cookie) ProtoMessage

func (*Cookie) ProtoMessage()

func (*Cookie) ProtoReflect

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

func (*Cookie) Reset

func (x *Cookie) Reset()

func (*Cookie) String

func (x *Cookie) String() string

type Data

type Data struct {
	Endpoints *Endpoints                  `protobuf:"bytes,1,opt,name=endpoints,proto3" json:"endpoints,omitempty"`
	Blobs     map[string]*blob.BlobConfig `` /* 151-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Data) Descriptor deprecated

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

Deprecated: Use Data.ProtoReflect.Descriptor instead.

func (*Data) GetBlobs

func (x *Data) GetBlobs() map[string]*blob.BlobConfig

func (*Data) GetEndpoints

func (x *Data) GetEndpoints() *Endpoints

func (*Data) ProtoMessage

func (*Data) ProtoMessage()

func (*Data) ProtoReflect

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

func (*Data) Reset

func (x *Data) Reset()

func (*Data) String

func (x *Data) String() string

type Database

type Database struct {
	Driver      string                  `protobuf:"bytes,1,opt,name=driver,proto3" json:"driver,omitempty"`
	Source      string                  `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"`
	Debug       bool                    `protobuf:"varint,3,opt,name=debug,proto3" json:"debug,omitempty"`
	TablePrefix *wrapperspb.StringValue `protobuf:"bytes,4,opt,name=table_prefix,json=tablePrefix,proto3,oneof" json:"table_prefix,omitempty"`
	// contains filtered or unexported fields
}

func (*Database) Descriptor deprecated

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

Deprecated: Use Database.ProtoReflect.Descriptor instead.

func (*Database) GetDebug

func (x *Database) GetDebug() bool

func (*Database) GetDriver

func (x *Database) GetDriver() string

func (*Database) GetSource

func (x *Database) GetSource() string

func (*Database) GetTablePrefix

func (x *Database) GetTablePrefix() *wrapperspb.StringValue

func (*Database) ProtoMessage

func (*Database) ProtoMessage()

func (*Database) ProtoReflect

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

func (*Database) Reset

func (x *Database) Reset()

func (*Database) String

func (x *Database) String() string

type Email

type Email struct {
	Provider string      `protobuf:"bytes,1,opt,name=provider,proto3" json:"provider,omitempty"`
	From     string      `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"`
	Smtp     *Email_SMTP `protobuf:"bytes,100,opt,name=smtp,proto3" json:"smtp,omitempty"`
	// contains filtered or unexported fields
}

func (*Email) Descriptor deprecated

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

Deprecated: Use Email.ProtoReflect.Descriptor instead.

func (*Email) GetFrom

func (x *Email) GetFrom() string

func (*Email) GetProvider

func (x *Email) GetProvider() string

func (*Email) GetSmtp

func (x *Email) GetSmtp() *Email_SMTP

func (*Email) ProtoMessage

func (*Email) ProtoMessage()

func (*Email) ProtoReflect

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

func (*Email) Reset

func (x *Email) Reset()

func (*Email) String

func (x *Email) String() string

type Email_SMTP

type Email_SMTP struct {
	Host           string                 `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
	Port           int32                  `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
	Username       string                 `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"`
	Password       string                 `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"`
	Encryption     Email_SMTP_Encryption  `protobuf:"varint,5,opt,name=encryption,proto3,enum=conf.Email_SMTP_Encryption" json:"encryption,omitempty"`
	KeepAlive      bool                   `protobuf:"varint,6,opt,name=keep_alive,json=keepAlive,proto3" json:"keep_alive,omitempty"`
	ConnectTimeout *wrapperspb.Int32Value `protobuf:"bytes,7,opt,name=connect_timeout,json=connectTimeout,proto3,oneof" json:"connect_timeout,omitempty"`
	SendTimeout    *wrapperspb.Int32Value `protobuf:"bytes,8,opt,name=send_timeout,json=sendTimeout,proto3,oneof" json:"send_timeout,omitempty"`
	TlsSkipVerify  bool                   `protobuf:"varint,9,opt,name=tls_skip_verify,json=tlsSkipVerify,proto3" json:"tls_skip_verify,omitempty"`
	// contains filtered or unexported fields
}

func (*Email_SMTP) Descriptor deprecated

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

Deprecated: Use Email_SMTP.ProtoReflect.Descriptor instead.

func (*Email_SMTP) GetConnectTimeout

func (x *Email_SMTP) GetConnectTimeout() *wrapperspb.Int32Value

func (*Email_SMTP) GetEncryption

func (x *Email_SMTP) GetEncryption() Email_SMTP_Encryption

func (*Email_SMTP) GetHost

func (x *Email_SMTP) GetHost() string

func (*Email_SMTP) GetKeepAlive

func (x *Email_SMTP) GetKeepAlive() bool

func (*Email_SMTP) GetPassword

func (x *Email_SMTP) GetPassword() string

func (*Email_SMTP) GetPort

func (x *Email_SMTP) GetPort() int32

func (*Email_SMTP) GetSendTimeout

func (x *Email_SMTP) GetSendTimeout() *wrapperspb.Int32Value

func (*Email_SMTP) GetTlsSkipVerify

func (x *Email_SMTP) GetTlsSkipVerify() bool

func (*Email_SMTP) GetUsername

func (x *Email_SMTP) GetUsername() string

func (*Email_SMTP) ProtoMessage

func (*Email_SMTP) ProtoMessage()

func (*Email_SMTP) ProtoReflect

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

func (*Email_SMTP) Reset

func (x *Email_SMTP) Reset()

func (*Email_SMTP) String

func (x *Email_SMTP) String() string

type Email_SMTP_Encryption

type Email_SMTP_Encryption int32
const (
	Email_SMTP_NONE     Email_SMTP_Encryption = 0
	Email_SMTP_SSL      Email_SMTP_Encryption = 1
	Email_SMTP_STARTTLS Email_SMTP_Encryption = 2
)

func (Email_SMTP_Encryption) Descriptor

func (Email_SMTP_Encryption) Enum

func (Email_SMTP_Encryption) EnumDescriptor deprecated

func (Email_SMTP_Encryption) EnumDescriptor() ([]byte, []int)

Deprecated: Use Email_SMTP_Encryption.Descriptor instead.

func (Email_SMTP_Encryption) Number

func (Email_SMTP_Encryption) String

func (x Email_SMTP_Encryption) String() string

func (Email_SMTP_Encryption) Type

type Endpoints

type Endpoints struct {
	Databases map[string]*Database     `` /* 159-byte string literal not displayed */
	Events    map[string]*event.Config `` /* 153-byte string literal not displayed */
	Redis     map[string]*Redis        `` /* 151-byte string literal not displayed */
	Email     *Email                   `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"`
	Sms       *Sms                     `protobuf:"bytes,5,opt,name=sms,proto3" json:"sms,omitempty"`
	// contains filtered or unexported fields
}

func (*Endpoints) Descriptor deprecated

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

Deprecated: Use Endpoints.ProtoReflect.Descriptor instead.

func (*Endpoints) GetDatabaseMergedDefault

func (x *Endpoints) GetDatabaseMergedDefault(name string) *Database

func (*Endpoints) GetDatabases

func (x *Endpoints) GetDatabases() map[string]*Database

func (*Endpoints) GetEmail

func (x *Endpoints) GetEmail() *Email

func (*Endpoints) GetEventMergedDefault

func (x *Endpoints) GetEventMergedDefault(name string) *event.Config

func (*Endpoints) GetEvents

func (x *Endpoints) GetEvents() map[string]*event.Config

func (*Endpoints) GetRedis

func (x *Endpoints) GetRedis() map[string]*Redis

func (*Endpoints) GetSms

func (x *Endpoints) GetSms() *Sms

func (*Endpoints) ProtoMessage

func (*Endpoints) ProtoMessage()

func (*Endpoints) ProtoReflect

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

func (*Endpoints) Reset

func (x *Endpoints) Reset()

func (*Endpoints) String

func (x *Endpoints) String() string

type Hydra

type Hydra struct {
	AdminUrl  string `protobuf:"bytes,1,opt,name=admin_url,json=adminUrl,proto3" json:"admin_url,omitempty"`
	PublicUrl string `protobuf:"bytes,2,opt,name=public_url,json=publicUrl,proto3" json:"public_url,omitempty"`
	// contains filtered or unexported fields
}

func (*Hydra) Descriptor deprecated

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

Deprecated: Use Hydra.ProtoReflect.Descriptor instead.

func (*Hydra) GetAdminUrl

func (x *Hydra) GetAdminUrl() string

func (*Hydra) GetPublicUrl

func (x *Hydra) GetPublicUrl() string

func (*Hydra) ProtoMessage

func (*Hydra) ProtoMessage()

func (*Hydra) ProtoReflect

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

func (*Hydra) Reset

func (x *Hydra) Reset()

func (*Hydra) String

func (x *Hydra) String() string

type Logging

type Logging struct {

	// Zap config, see https://github.com/uber-go/zap/blob/78c80fbae8e745f49704cca337f9ad0eca1ca93f/config.go#L58
	Zap *structpb.Struct `protobuf:"bytes,100,opt,name=zap,proto3" json:"zap,omitempty"`
	// contains filtered or unexported fields
}

func (*Logging) Descriptor deprecated

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

Deprecated: Use Logging.ProtoReflect.Descriptor instead.

func (*Logging) GetZap

func (x *Logging) GetZap() *structpb.Struct

func (*Logging) ProtoMessage

func (*Logging) ProtoMessage()

func (*Logging) ProtoReflect

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

func (*Logging) Reset

func (x *Logging) Reset()

func (*Logging) String

func (x *Logging) String() string

type Oidc

type Oidc struct {
	Provider string `protobuf:"bytes,1,opt,name=provider,proto3" json:"provider,omitempty"`
	Hydra    *Hydra `protobuf:"bytes,2,opt,name=hydra,proto3" json:"hydra,omitempty"`
	// contains filtered or unexported fields
}

func (*Oidc) Descriptor deprecated

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

Deprecated: Use Oidc.ProtoReflect.Descriptor instead.

func (*Oidc) GetHydra

func (x *Oidc) GetHydra() *Hydra

func (*Oidc) GetProvider

func (x *Oidc) GetProvider() string

func (*Oidc) ProtoMessage

func (*Oidc) ProtoMessage()

func (*Oidc) ProtoReflect

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

func (*Oidc) Reset

func (x *Oidc) Reset()

func (*Oidc) String

func (x *Oidc) String() string

type Redis

type Redis struct {

	// Url see redis.ParseURL (https://github.com/go-redis/redis/blob/27f0addeb2e6997bdd2faa1b48f6a989f83c4751/options.go#L225)
	Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
	// contains filtered or unexported fields
}

func (*Redis) Descriptor deprecated

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

Deprecated: Use Redis.ProtoReflect.Descriptor instead.

func (*Redis) GetUrl

func (x *Redis) GetUrl() string

func (*Redis) ProtoMessage

func (*Redis) ProtoMessage()

func (*Redis) ProtoReflect

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

func (*Redis) Reset

func (x *Redis) Reset()

func (*Redis) String

func (x *Redis) String() string

type SameSiteMode

type SameSiteMode int32
const (
	SameSiteMode_SameSiteDefault SameSiteMode = 0
	SameSiteMode_SameSiteLax     SameSiteMode = 1
	SameSiteMode_SameSiteStrict  SameSiteMode = 2
	SameSiteMode_SameSiteNone    SameSiteMode = 3
)

func (SameSiteMode) Descriptor

func (SameSiteMode) Enum

func (x SameSiteMode) Enum() *SameSiteMode

func (SameSiteMode) EnumDescriptor deprecated

func (SameSiteMode) EnumDescriptor() ([]byte, []int)

Deprecated: Use SameSiteMode.Descriptor instead.

func (SameSiteMode) Number

func (SameSiteMode) String

func (x SameSiteMode) String() string

func (SameSiteMode) Type

type Security

type Security struct {
	Jwt            *Security_Jwt       `protobuf:"bytes,1,opt,name=jwt,proto3" json:"jwt,omitempty"`
	SecurityCookie *Security_CookieKey `protobuf:"bytes,2,opt,name=security_cookie,json=securityCookie,proto3" json:"security_cookie,omitempty"`
	SessionCookie  *Cookie             `protobuf:"bytes,6,opt,name=session_cookie,json=sessionCookie,proto3" json:"session_cookie,omitempty"`
	RememberCookie *Cookie             `protobuf:"bytes,7,opt,name=remember_cookie,json=rememberCookie,proto3" json:"remember_cookie,omitempty"`
	Oidc           *Oidc               `protobuf:"bytes,8,opt,name=oidc,proto3" json:"oidc,omitempty"`
	// contains filtered or unexported fields
}

func (*Security) Descriptor deprecated

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

Deprecated: Use Security.ProtoReflect.Descriptor instead.

func (*Security) GetJwt

func (x *Security) GetJwt() *Security_Jwt

func (*Security) GetOidc

func (x *Security) GetOidc() *Oidc

func (*Security) GetRememberCookie

func (x *Security) GetRememberCookie() *Cookie

func (*Security) GetSecurityCookie

func (x *Security) GetSecurityCookie() *Security_CookieKey

func (*Security) GetSessionCookie

func (x *Security) GetSessionCookie() *Cookie

func (*Security) ProtoMessage

func (*Security) ProtoMessage()

func (*Security) ProtoReflect

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

func (*Security) Reset

func (x *Security) Reset()

func (*Security) String

func (x *Security) String() string

type Security_CookieKey

type Security_CookieKey struct {
	HashKey  string                  `protobuf:"bytes,1,opt,name=hash_key,json=hashKey,proto3" json:"hash_key,omitempty"`
	BlockKey *wrapperspb.StringValue `protobuf:"bytes,2,opt,name=block_key,json=blockKey,proto3,oneof" json:"block_key,omitempty"`
	// contains filtered or unexported fields
}

func (*Security_CookieKey) Descriptor deprecated

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

Deprecated: Use Security_CookieKey.ProtoReflect.Descriptor instead.

func (*Security_CookieKey) GetBlockKey

func (x *Security_CookieKey) GetBlockKey() *wrapperspb.StringValue

func (*Security_CookieKey) GetHashKey

func (x *Security_CookieKey) GetHashKey() string

func (*Security_CookieKey) ProtoMessage

func (*Security_CookieKey) ProtoMessage()

func (*Security_CookieKey) ProtoReflect

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

func (*Security_CookieKey) Reset

func (x *Security_CookieKey) Reset()

func (*Security_CookieKey) String

func (x *Security_CookieKey) String() string

type Security_Jwt

type Security_Jwt struct {
	ExpireIn             *durationpb.Duration `protobuf:"bytes,1,opt,name=expire_in,json=expireIn,proto3" json:"expire_in,omitempty"`
	Secret               string               `protobuf:"bytes,2,opt,name=secret,proto3" json:"secret,omitempty"`
	RefreshTokenExpireIn *durationpb.Duration `protobuf:"bytes,3,opt,name=refresh_token_expire_in,json=refreshTokenExpireIn,proto3" json:"refresh_token_expire_in,omitempty"`
	Issuer               string               `protobuf:"bytes,4,opt,name=issuer,proto3" json:"issuer,omitempty"`
	// contains filtered or unexported fields
}

func (*Security_Jwt) Descriptor deprecated

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

Deprecated: Use Security_Jwt.ProtoReflect.Descriptor instead.

func (*Security_Jwt) GetExpireIn

func (x *Security_Jwt) GetExpireIn() *durationpb.Duration

func (*Security_Jwt) GetIssuer

func (x *Security_Jwt) GetIssuer() string

func (*Security_Jwt) GetRefreshTokenExpireIn

func (x *Security_Jwt) GetRefreshTokenExpireIn() *durationpb.Duration

func (*Security_Jwt) GetSecret

func (x *Security_Jwt) GetSecret() string

func (*Security_Jwt) ProtoMessage

func (*Security_Jwt) ProtoMessage()

func (*Security_Jwt) ProtoReflect

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

func (*Security_Jwt) Reset

func (x *Security_Jwt) Reset()

func (*Security_Jwt) String

func (x *Security_Jwt) String() string

type Server

type Server struct {
	Http *Server_HTTP `protobuf:"bytes,1,opt,name=http,proto3" json:"http,omitempty"`
	Grpc *Server_GRPC `protobuf:"bytes,2,opt,name=grpc,proto3" json:"grpc,omitempty"`
	// contains filtered or unexported fields
}

func (*Server) Descriptor deprecated

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

Deprecated: Use Server.ProtoReflect.Descriptor instead.

func (*Server) GetGrpc

func (x *Server) GetGrpc() *Server_GRPC

func (*Server) GetHttp

func (x *Server) GetHttp() *Server_HTTP

func (*Server) ProtoMessage

func (*Server) ProtoMessage()

func (*Server) ProtoReflect

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

func (*Server) Reset

func (x *Server) Reset()

func (*Server) String

func (x *Server) String() string

type Server_GRPC

type Server_GRPC struct {
	Network string               `protobuf:"bytes,1,opt,name=network,proto3" json:"network,omitempty"`
	Addr    string               `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"`
	Timeout *durationpb.Duration `protobuf:"bytes,3,opt,name=timeout,proto3" json:"timeout,omitempty"`
	// contains filtered or unexported fields
}

func (*Server_GRPC) Descriptor deprecated

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

Deprecated: Use Server_GRPC.ProtoReflect.Descriptor instead.

func (*Server_GRPC) GetAddr

func (x *Server_GRPC) GetAddr() string

func (*Server_GRPC) GetNetwork

func (x *Server_GRPC) GetNetwork() string

func (*Server_GRPC) GetTimeout

func (x *Server_GRPC) GetTimeout() *durationpb.Duration

func (*Server_GRPC) ProtoMessage

func (*Server_GRPC) ProtoMessage()

func (*Server_GRPC) ProtoReflect

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

func (*Server_GRPC) Reset

func (x *Server_GRPC) Reset()

func (*Server_GRPC) String

func (x *Server_GRPC) String() string

type Server_HTTP

type Server_HTTP struct {
	Network string               `protobuf:"bytes,1,opt,name=network,proto3" json:"network,omitempty"`
	Addr    string               `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"`
	Timeout *durationpb.Duration `protobuf:"bytes,3,opt,name=timeout,proto3" json:"timeout,omitempty"`
	Cors    *Server_HTTP_Cors    `protobuf:"bytes,4,opt,name=cors,proto3" json:"cors,omitempty"`
	Csrf    *Server_HTTP_Csrf    `protobuf:"bytes,5,opt,name=csrf,proto3" json:"csrf,omitempty"`
	// contains filtered or unexported fields
}

func (*Server_HTTP) Descriptor deprecated

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

Deprecated: Use Server_HTTP.ProtoReflect.Descriptor instead.

func (*Server_HTTP) GetAddr

func (x *Server_HTTP) GetAddr() string

func (*Server_HTTP) GetCors

func (x *Server_HTTP) GetCors() *Server_HTTP_Cors

func (*Server_HTTP) GetCsrf

func (x *Server_HTTP) GetCsrf() *Server_HTTP_Csrf

func (*Server_HTTP) GetNetwork

func (x *Server_HTTP) GetNetwork() string

func (*Server_HTTP) GetTimeout

func (x *Server_HTTP) GetTimeout() *durationpb.Duration

func (*Server_HTTP) ProtoMessage

func (*Server_HTTP) ProtoMessage()

func (*Server_HTTP) ProtoReflect

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

func (*Server_HTTP) Reset

func (x *Server_HTTP) Reset()

func (*Server_HTTP) String

func (x *Server_HTTP) String() string

type Server_HTTP_Cors

type Server_HTTP_Cors struct {
	AllowedOrigins []string `protobuf:"bytes,1,rep,name=allowed_origins,json=allowedOrigins,proto3" json:"allowed_origins,omitempty"`
	AllowedMethods []string `protobuf:"bytes,2,rep,name=allowed_methods,json=allowedMethods,proto3" json:"allowed_methods,omitempty"`
	AllowedHeaders []string `protobuf:"bytes,3,rep,name=allowed_headers,json=allowedHeaders,proto3" json:"allowed_headers,omitempty"`
	// contains filtered or unexported fields
}

func (*Server_HTTP_Cors) Descriptor deprecated

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

Deprecated: Use Server_HTTP_Cors.ProtoReflect.Descriptor instead.

func (*Server_HTTP_Cors) GetAllowedHeaders

func (x *Server_HTTP_Cors) GetAllowedHeaders() []string

func (*Server_HTTP_Cors) GetAllowedMethods

func (x *Server_HTTP_Cors) GetAllowedMethods() []string

func (*Server_HTTP_Cors) GetAllowedOrigins

func (x *Server_HTTP_Cors) GetAllowedOrigins() []string

func (*Server_HTTP_Cors) ProtoMessage

func (*Server_HTTP_Cors) ProtoMessage()

func (*Server_HTTP_Cors) ProtoReflect

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

func (*Server_HTTP_Cors) Reset

func (x *Server_HTTP_Cors) Reset()

func (*Server_HTTP_Cors) String

func (x *Server_HTTP_Cors) String() string

type Server_HTTP_Csrf

type Server_HTTP_Csrf struct {
	Cookie         *Cookie                 `protobuf:"bytes,10,opt,name=cookie,proto3" json:"cookie,omitempty"`
	RequestHeader  *wrapperspb.StringValue `protobuf:"bytes,17,opt,name=request_header,json=requestHeader,proto3,oneof" json:"request_header,omitempty"`
	FieldName      *wrapperspb.StringValue `protobuf:"bytes,18,opt,name=field_name,json=fieldName,proto3,oneof" json:"field_name,omitempty"`
	TrustedOrigins []string                `protobuf:"bytes,20,rep,name=trusted_origins,json=trustedOrigins,proto3" json:"trusted_origins,omitempty"`
	// contains filtered or unexported fields
}

func (*Server_HTTP_Csrf) Descriptor deprecated

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

Deprecated: Use Server_HTTP_Csrf.ProtoReflect.Descriptor instead.

func (*Server_HTTP_Csrf) GetCookie

func (x *Server_HTTP_Csrf) GetCookie() *Cookie

func (*Server_HTTP_Csrf) GetFieldName

func (x *Server_HTTP_Csrf) GetFieldName() *wrapperspb.StringValue

func (*Server_HTTP_Csrf) GetRequestHeader

func (x *Server_HTTP_Csrf) GetRequestHeader() *wrapperspb.StringValue

func (*Server_HTTP_Csrf) GetTrustedOrigins

func (x *Server_HTTP_Csrf) GetTrustedOrigins() []string

func (*Server_HTTP_Csrf) ProtoMessage

func (*Server_HTTP_Csrf) ProtoMessage()

func (*Server_HTTP_Csrf) ProtoReflect

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

func (*Server_HTTP_Csrf) Reset

func (x *Server_HTTP_Csrf) Reset()

func (*Server_HTTP_Csrf) String

func (x *Server_HTTP_Csrf) String() string

type Service

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

func (*Service) Descriptor deprecated

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

Deprecated: Use Service.ProtoReflect.Descriptor instead.

func (*Service) GetRedirect

func (x *Service) GetRedirect() string

func (*Service) ProtoMessage

func (*Service) ProtoMessage()

func (*Service) ProtoReflect

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

func (*Service) Reset

func (x *Service) Reset()

func (*Service) String

func (x *Service) String() string

type Services

type Services struct {
	Services map[string]*Service `` /* 157-byte string literal not displayed */
	// Servers configure server config
	Servers map[string]*Server `` /* 155-byte string literal not displayed */
	// Clients server to server communication client
	Clients map[string]*Client `` /* 155-byte string literal not displayed */
	//Registry for service discovery
	Registry *registry.Config `protobuf:"bytes,4,opt,name=registry,proto3" json:"registry,omitempty"`
	// contains filtered or unexported fields
}

func (*Services) Descriptor deprecated

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

Deprecated: Use Services.ProtoReflect.Descriptor instead.

func (*Services) GetClients

func (x *Services) GetClients() map[string]*Client

func (*Services) GetRegistry

func (x *Services) GetRegistry() *registry.Config

func (*Services) GetServers

func (x *Services) GetServers() map[string]*Server

func (*Services) GetServiceMergedDefault

func (x *Services) GetServiceMergedDefault(name string) *Service

func (*Services) GetServices

func (x *Services) GetServices() map[string]*Service

func (*Services) ProtoMessage

func (*Services) ProtoMessage()

func (*Services) ProtoReflect

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

func (*Services) Reset

func (x *Services) Reset()

func (*Services) String

func (x *Services) String() string

type Sms

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

func (*Sms) Descriptor deprecated

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

Deprecated: Use Sms.ProtoReflect.Descriptor instead.

func (*Sms) GetProvider

func (x *Sms) GetProvider() string

func (*Sms) ProtoMessage

func (*Sms) ProtoMessage()

func (*Sms) ProtoReflect

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

func (*Sms) Reset

func (x *Sms) Reset()

func (*Sms) String

func (x *Sms) String() string

type Tracers

type Tracers struct {
	Otel *Tracers_Otel `protobuf:"bytes,1,opt,name=otel,proto3" json:"otel,omitempty"`
	// contains filtered or unexported fields
}

func (*Tracers) Descriptor deprecated

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

Deprecated: Use Tracers.ProtoReflect.Descriptor instead.

func (*Tracers) GetOtel

func (x *Tracers) GetOtel() *Tracers_Otel

func (*Tracers) ProtoMessage

func (*Tracers) ProtoMessage()

func (*Tracers) ProtoReflect

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

func (*Tracers) Reset

func (x *Tracers) Reset()

func (*Tracers) String

func (x *Tracers) String() string

type Tracers_Otel

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

func (*Tracers_Otel) Descriptor deprecated

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

Deprecated: Use Tracers_Otel.ProtoReflect.Descriptor instead.

func (*Tracers_Otel) GetGrpc

func (x *Tracers_Otel) GetGrpc() string

func (*Tracers_Otel) ProtoMessage

func (*Tracers_Otel) ProtoMessage()

func (*Tracers_Otel) ProtoReflect

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

func (*Tracers_Otel) Reset

func (x *Tracers_Otel) Reset()

func (*Tracers_Otel) String

func (x *Tracers_Otel) String() string

Jump to

Keyboard shortcuts

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