Documentation ¶
Index ¶
- Variables
- type AppConfig
- func (*AppConfig) Descriptor() ([]byte, []int)deprecated
- func (x *AppConfig) GetAppId() int64
- func (x *AppConfig) GetBase64Pem() string
- func (x *AppConfig) GetInstallationId() int64
- func (x *AppConfig) GetKeyPem() string
- func (m *AppConfig) GetPem() isAppConfig_Pem
- func (*AppConfig) ProtoMessage()
- func (x *AppConfig) ProtoReflect() protoreflect.Message
- func (x *AppConfig) Reset()
- func (x *AppConfig) String() string
- func (m *AppConfig) Validate() error
- func (m *AppConfig) ValidateAll() error
- type AppConfigMultiError
- type AppConfigValidationError
- type AppConfig_Base64Pem
- type AppConfig_KeyPem
- type Config
- func (*Config) Descriptor() ([]byte, []int)deprecated
- func (x *Config) GetAccessToken() string
- func (x *Config) GetAppConfig() *AppConfig
- func (m *Config) GetAuth() isConfig_Auth
- func (*Config) ProtoMessage()
- func (x *Config) ProtoReflect() protoreflect.Message
- func (x *Config) Reset()
- func (x *Config) String() string
- func (m *Config) Validate() error
- func (m *Config) ValidateAll() error
- type ConfigMultiError
- type ConfigValidationError
- type Config_AccessToken
- type Config_AppConfig
Constants ¶
This section is empty.
Variables ¶
var File_config_service_github_v1_github_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type AppConfig ¶
type AppConfig struct { AppId int64 `protobuf:"varint,1,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty"` InstallationId int64 `protobuf:"varint,2,opt,name=installation_id,json=installationId,proto3" json:"installation_id,omitempty"` // Types that are assignable to Pem: // // *AppConfig_KeyPem // *AppConfig_Base64Pem Pem isAppConfig_Pem `protobuf_oneof:"pem"` // contains filtered or unexported fields }
func (*AppConfig) Descriptor
deprecated
func (*AppConfig) GetBase64Pem ¶
func (*AppConfig) GetInstallationId ¶
func (*AppConfig) ProtoMessage ¶
func (*AppConfig) ProtoMessage()
func (*AppConfig) ProtoReflect ¶
func (x *AppConfig) ProtoReflect() protoreflect.Message
func (*AppConfig) Validate ¶
Validate checks the field values on AppConfig with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*AppConfig) ValidateAll ¶
ValidateAll checks the field values on AppConfig with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AppConfigMultiError, or nil if none found.
type AppConfigMultiError ¶
type AppConfigMultiError []error
AppConfigMultiError is an error wrapping multiple validation errors returned by AppConfig.ValidateAll() if the designated constraints aren't met.
func (AppConfigMultiError) AllErrors ¶
func (m AppConfigMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AppConfigMultiError) Error ¶
func (m AppConfigMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AppConfigValidationError ¶
type AppConfigValidationError struct {
// contains filtered or unexported fields
}
AppConfigValidationError is the validation error returned by AppConfig.Validate if the designated constraints aren't met.
func (AppConfigValidationError) Cause ¶
func (e AppConfigValidationError) Cause() error
Cause function returns cause value.
func (AppConfigValidationError) Error ¶
func (e AppConfigValidationError) Error() string
Error satisfies the builtin error interface
func (AppConfigValidationError) ErrorName ¶
func (e AppConfigValidationError) ErrorName() string
ErrorName returns error name.
func (AppConfigValidationError) Field ¶
func (e AppConfigValidationError) Field() string
Field function returns field value.
func (AppConfigValidationError) Key ¶
func (e AppConfigValidationError) Key() bool
Key function returns key value.
func (AppConfigValidationError) Reason ¶
func (e AppConfigValidationError) Reason() string
Reason function returns reason value.
type AppConfig_Base64Pem ¶
type AppConfig_Base64Pem struct { // a base64 encoded private encryption key from a pem file Base64Pem string `protobuf:"bytes,4,opt,name=base64_pem,json=base64Pem,proto3,oneof"` }
type AppConfig_KeyPem ¶
type AppConfig_KeyPem struct { // a private encryption key from a pem file KeyPem string `protobuf:"bytes,3,opt,name=key_pem,json=keyPem,proto3,oneof"` }
type Config ¶
type Config struct { // Types that are assignable to Auth: // // *Config_AccessToken // *Config_AppConfig Auth isConfig_Auth `protobuf_oneof:"auth"` // contains filtered or unexported fields }
func (*Config) Descriptor
deprecated
func (*Config) GetAccessToken ¶
func (*Config) GetAppConfig ¶
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
func (*Config) ProtoReflect ¶
func (x *Config) ProtoReflect() protoreflect.Message
func (*Config) Validate ¶
Validate checks the field values on Config with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Config) ValidateAll ¶
ValidateAll checks the field values on Config with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ConfigMultiError, or nil if none found.
type ConfigMultiError ¶
type ConfigMultiError []error
ConfigMultiError is an error wrapping multiple validation errors returned by Config.ValidateAll() if the designated constraints aren't met.
func (ConfigMultiError) AllErrors ¶
func (m ConfigMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ConfigMultiError) Error ¶
func (m ConfigMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ConfigValidationError ¶
type ConfigValidationError struct {
// contains filtered or unexported fields
}
ConfigValidationError is the validation error returned by Config.Validate if the designated constraints aren't met.
func (ConfigValidationError) Cause ¶
func (e ConfigValidationError) Cause() error
Cause function returns cause value.
func (ConfigValidationError) Error ¶
func (e ConfigValidationError) Error() string
Error satisfies the builtin error interface
func (ConfigValidationError) ErrorName ¶
func (e ConfigValidationError) ErrorName() string
ErrorName returns error name.
func (ConfigValidationError) Field ¶
func (e ConfigValidationError) Field() string
Field function returns field value.
func (ConfigValidationError) Key ¶
func (e ConfigValidationError) Key() bool
Key function returns key value.
func (ConfigValidationError) Reason ¶
func (e ConfigValidationError) Reason() string
Reason function returns reason value.
type Config_AccessToken ¶
type Config_AccessToken struct {
AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3,oneof"`
}
type Config_AppConfig ¶
type Config_AppConfig struct {
AppConfig *AppConfig `protobuf:"bytes,2,opt,name=app_config,json=appConfig,proto3,oneof"`
}