Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: gone-io/goner
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.0.10
Choose a base ref
...
head repository: gone-io/goner
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.0.11
Choose a head ref
  • 16 commits
  • 116 files changed
  • 2 contributors

Commits on Apr 19, 2025

  1. feat(config_center): add consul example

    - Add default.yaml for consul configuration- Create application.yaml and database.yaml in consul-config-files directory
    - Include docker-compose.yaml for consul service
    - Add go.mod with required dependencies
    dapeng committed Apr 19, 2025
    Configuration menu
    Copy the full SHA
    3133cc4 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #52 from gone-io/features/v1.x

    feat(config_center): add consul example
    Degfy authored Apr 19, 2025
    Configuration menu
    Copy the full SHA
    8cd29f6 View commit details
    Browse the repository at this point in the history
  3. feat(consul): add consul client and service registry

    - Implement consul client for service discovery and registration
    - Add support for getting instances, watching services, and managing service lifecycle
    - Include error handling and logger integration
    - Provide unit tests for client and registry functionality
    dapeng committed Apr 19, 2025
    Configuration menu
    Copy the full SHA
    758b0d5 View commit details
    Browse the repository at this point in the history
  4. refactor(consul): simplify Deregister function

    - Remove unnecessary if statement and explicit nil error return
    - Consolidate error handling into a single line
    dapeng committed Apr 19, 2025
    Configuration menu
    Copy the full SHA
    6532063 View commit details
    Browse the repository at this point in the history
  5. Merge pull request #53 from gone-io/features/v1.x

    feat(consul): add consul client and service registry
    Degfy authored Apr 19, 2025
    Configuration menu
    Copy the full SHA
    2336519 View commit details
    Browse the repository at this point in the history
  6. feat(etcd): add etcd registry and refactor service registration

    - Add new etcd registry implementation for service discovery
    - Refactor service registration and parsing logic
    - Update go.mod files to include new dependencies
    - Improve error handling and logging in registry operations
    dapeng committed Apr 19, 2025
    Configuration menu
    Copy the full SHA
    7b6ba75 View commit details
    Browse the repository at this point in the history

Commits on Apr 20, 2025

  1. refactor(g): simplify singleton provider and third-party component lo…

    …ad funcs
    
    - Update gone-io/gone/mock/v2 to v2.0.12
    - Update gone-io/gone/v2 to v2.0.12
    - Update github.com/stretchr/testify to v1.10.0
    - Refactor SingLoadProviderFunc and NamedThirdComponentLoadFunc to use built-in methods
    - Improve Service struct and ParseService function- Add unit tests for ParseService
    dapeng committed Apr 20, 2025
    Configuration menu
    Copy the full SHA
    44a752c View commit details
    Browse the repository at this point in the history
  2. build: update gone-io dependencies to v2.0.12 and v1.0.11

    - Update github.com/gone-io/gone/v2 from v2.0.11 to v2.0.12
    - Update github.com/gone-io/goner/g from v1.0.10 to v1.0.11
    - Update other related dependencies in multiple modules
    dapeng committed Apr 20, 2025
    Configuration menu
    Copy the full SHA
    a2ee34c View commit details
    Browse the repository at this point in the history
  3. fix(g): add strconv import and use Quote for JSON output

    - Add strconv package import for safe string quoting
    - Use strconv.Quote on JSON output to ensure proper formatting and safety
    dapeng committed Apr 20, 2025
    Configuration menu
    Copy the full SHA
    58276d3 View commit details
    Browse the repository at this point in the history
  4. feat(etcd): add unit tests and improve registry functionality

    - Add unit tests for Registry using testify and mock
    - Implement redoRegisterLease method for better error handling
    - Update GetServerValue to use direct JSON marshaling
    - Add etcd mock file for interface mocking
    - Update go.mod and go.sum for new dependencies
    dapeng committed Apr 20, 2025
    Configuration menu
    Copy the full SHA
    43584b3 View commit details
    Browse the repository at this point in the history
  5. refactor(etcd): improve test coverage and add watcher support

    - Add watcher interface to etcd mock
    - Implement watch functionality in discovery.go
    - Add unit tests for extractResponseToServices and watch
    - Update load test to use correct parameters
    - Refactor registry tests to cover new functionality
    dapeng committed Apr 20, 2025
    Configuration menu
    Copy the full SHA
    f8a9af3 View commit details
    Browse the repository at this point in the history
  6. style: fix etcd put log format

    - Update log format for etcd put operation to use double quotes instead of backticks
    - Improve readability and consistency of error and debug messages
    dapeng committed Apr 20, 2025
    Configuration menu
    Copy the full SHA
    32faa36 View commit details
    Browse the repository at this point in the history
  7. feat(g): encode service instance information in base64

    - Modify `GetServerValue` function to encode JSON-marshaled instance data in base64- Update tests to use base64-encoded service values
    - This change enhances security and compatibility by encoding sensitive information
    dapeng committed Apr 20, 2025
    Configuration menu
    Copy the full SHA
    f158b7e View commit details
    Browse the repository at this point in the history
  8. fix(consul): prevent panic in service instance retrieval

    - Use gone.SafeExecute to handle potential panics safely- Improve error handling in the GetInstances function call
    dapeng committed Apr 20, 2025
    Configuration menu
    Copy the full SHA
    7e18e7b View commit details
    Browse the repository at this point in the history
  9. feat(consul, etcd): add support for loading configuration via consul.…

    …config and etcd.config
    
    - Update ProvideConsulClient and ProvideEtecd3Client to support new configuration options
    - Add README and README_CN files for both consul and etcd components
    - Modify existing test files to accommodate new configuration options
    dapeng committed Apr 20, 2025
    Configuration menu
    Copy the full SHA
    089a866 View commit details
    Browse the repository at this point in the history
  10. Merge pull request #54 from gone-io/features/v1.x

    feat(etcd): add etcd registry and refactor service registration
    Degfy authored Apr 20, 2025
    Configuration menu
    Copy the full SHA
    8bafbd1 View commit details
    Browse the repository at this point in the history
Loading