github.com/hyperledger/aries-framework-go@v0.3.2/pkg/didcomm/protocol/mediator/config.go (about)

     1  /*
     2  Copyright SecureKey Technologies Inc. All Rights Reserved.
     3  
     4  SPDX-License-Identifier: Apache-2.0
     5  */
     6  
     7  package mediator
     8  
     9  // Config provides the router configuration.
    10  type Config struct {
    11  	routerEndpoint string
    12  	routingKeys    []string
    13  }
    14  
    15  // NewConfig creates new config instance.
    16  func NewConfig(endpoint string, keys []string) *Config {
    17  	return &Config{
    18  		routerEndpoint: endpoint,
    19  		routingKeys:    keys,
    20  	}
    21  }
    22  
    23  // Endpoint returns router endpoint.
    24  func (c *Config) Endpoint() string {
    25  	return c.routerEndpoint
    26  }
    27  
    28  // Keys returns routing keys.
    29  func (c *Config) Keys() []string {
    30  	return c.routingKeys
    31  }