conf

package
v0.2.12 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2025 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_examples_protos_simple_grpc_server_bootstrap_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Bootstrap

type Bootstrap struct {

	// Server configuration list
	// Using repeated allows configuring multiple server instances, for example:
	// - A gRPC server for internal service communication
	// - An HTTP server for providing RESTful APIs
	Servers []*v1.Server `protobuf:"bytes,1,rep,name=servers,proto3" json:"servers,omitempty"`
	// contains filtered or unexported fields
}

Bootstrap is the top-level configuration for a simple gRPC server This configuration is used to initialize a microservice that only provides gRPC server functionality

func (*Bootstrap) Descriptor deprecated

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

Deprecated: Use Bootstrap.ProtoReflect.Descriptor instead.

func (*Bootstrap) GetServers

func (x *Bootstrap) GetServers() []*v1.Server

func (*Bootstrap) ProtoMessage

func (*Bootstrap) ProtoMessage()

func (*Bootstrap) ProtoReflect

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

func (*Bootstrap) Reset

func (x *Bootstrap) Reset()

func (*Bootstrap) String

func (x *Bootstrap) String() string

func (*Bootstrap) Validate added in v0.2.7

func (m *Bootstrap) Validate() error

Validate checks the field values on Bootstrap 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 (*Bootstrap) ValidateAll added in v0.2.7

func (m *Bootstrap) ValidateAll() error

ValidateAll checks the field values on Bootstrap 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 BootstrapMultiError, or nil if none found.

type BootstrapMultiError added in v0.2.7

type BootstrapMultiError []error

BootstrapMultiError is an error wrapping multiple validation errors returned by Bootstrap.ValidateAll() if the designated constraints aren't met.

func (BootstrapMultiError) AllErrors added in v0.2.7

func (m BootstrapMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (BootstrapMultiError) Error added in v0.2.7

func (m BootstrapMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type BootstrapValidationError added in v0.2.7

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

BootstrapValidationError is the validation error returned by Bootstrap.Validate if the designated constraints aren't met.

func (BootstrapValidationError) Cause added in v0.2.7

func (e BootstrapValidationError) Cause() error

Cause function returns cause value.

func (BootstrapValidationError) Error added in v0.2.7

func (e BootstrapValidationError) Error() string

Error satisfies the builtin error interface

func (BootstrapValidationError) ErrorName added in v0.2.7

func (e BootstrapValidationError) ErrorName() string

ErrorName returns error name.

func (BootstrapValidationError) Field added in v0.2.7

func (e BootstrapValidationError) Field() string

Field function returns field value.

func (BootstrapValidationError) Key added in v0.2.7

Key function returns key value.

func (BootstrapValidationError) Reason added in v0.2.7

func (e BootstrapValidationError) Reason() string

Reason function returns reason value.

Jump to

Keyboard shortcuts

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