github.com/annwntech/go-micro/v2@v2.9.5/auth/provider/basic/basic.go (about)

     1  package basic
     2  
     3  import (
     4  	"github.com/annwntech/go-micro/v2/auth/provider"
     5  )
     6  
     7  // NewProvider returns an initialised basic provider
     8  func NewProvider(opts ...provider.Option) provider.Provider {
     9  	var options provider.Options
    10  	for _, o := range opts {
    11  		o(&options)
    12  	}
    13  	return &basic{options}
    14  }
    15  
    16  type basic struct {
    17  	opts provider.Options
    18  }
    19  
    20  func (b *basic) String() string {
    21  	return "basic"
    22  }
    23  
    24  func (b *basic) Options() provider.Options {
    25  	return b.opts
    26  }
    27  
    28  func (b *basic) Endpoint(...provider.EndpointOption) string {
    29  	return ""
    30  }
    31  
    32  func (b *basic) Redirect() string {
    33  	return ""
    34  }